Trait tarpc::rpc::server::Handler [−][src]
A utility trait enabling a stream to fluently chain a request handler.
Provided methods
fn max_channels_per_key<K, KF>(
self,
n: u32,
keymaker: KF
) -> ChannelFilter<Self, K, KF> where
K: Display + Eq + Hash + Clone + Unpin,
KF: Fn(&C) -> K,
[src]
self,
n: u32,
keymaker: KF
) -> ChannelFilter<Self, K, KF> where
K: Display + Eq + Hash + Clone + Unpin,
KF: Fn(&C) -> K,
Enforces channel per-key limits.
fn max_concurrent_requests_per_channel(self, n: usize) -> ThrottlerStream<Self>
[src]
Caps the number of concurrent requests per channel.
fn respond_with<S>(self, server: S) -> Running<Self, S>ⓘ where
S: Serve<C::Req, Resp = C::Resp>,
[src]
S: Serve<C::Req, Resp = C::Resp>,
Responds to all requests with server::serve
.