pub struct Config {
pub pending_response_buffer: usize,
}
Expand description
Settings that control the behavior of channels.
Fields§
§pending_response_buffer: usize
Controls the buffer size of the in-process channel over which a server’s handlers send
responses to the Channel
. In other words, this is the number of responses that can sit
in the outbound queue before request handlers begin blocking.
Implementations§
source§impl Config
impl Config
sourcepub fn channel<Req, Resp, T>(self, transport: T) -> BaseChannel<Req, Resp, T>where
T: Transport<Response<Resp>, ClientMessage<Req>>,
pub fn channel<Req, Resp, T>(self, transport: T) -> BaseChannel<Req, Resp, T>where T: Transport<Response<Resp>, ClientMessage<Req>>,
Returns a channel backed by transport
and configured with self
.