pub struct Options {
pub max_frame_len: usize,
pub request_timeout: Option<Duration>,
pub max_concurrency: Option<usize>,
pub send_queue: usize,
}Expand description
Settings for a connection.
Fields§
§max_frame_len: usizeLargest frame accepted or sent, in bytes.
request_timeout: Option<Duration>How long an outgoing request waits for its response before failing
with Error::Timeout and being cancelled. None waits forever.
max_concurrency: Option<usize>Most incoming requests handled at once; further ones wait. None is
unlimited. Notifications are not limited.
send_queue: usizeOutgoing frames queued before senders wait.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more