[−][src]Trait tarpc::rpc::server::Handler
A utility trait enabling a stream to fluently chain a request handler.
Provided methods
pub 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.
pub fn max_concurrent_requests_per_channel(
self,
n: usize
) -> ThrottlerStream<Self>
[src]
self,
n: usize
) -> ThrottlerStream<Self>
Caps the number of concurrent requests per channel.
pub 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>,
This is supported on crate feature
tokio1
only.Responds to all requests with server::serve
.