pub struct Limits {
pub max_send_buffer_size: MaxSendBufferSize,
pub max_open_local_unidirectional_streams: LocalUnidirectional,
pub max_open_local_bidirectional_streams: LocalBidirectional,
}Expand description
Per-stream limits
Fields§
§max_send_buffer_size: MaxSendBufferSizeThe maximum send buffer size for a Stream
max_open_local_unidirectional_streams: LocalUnidirectionalThe maximum number of unidirectional streams that may be opened concurrently by the local endpoint. This value is not communicated to the peer, it is only used for limiting concurrent streams opened locally by the application.
max_open_local_bidirectional_streams: LocalBidirectionalThe maximum number of bidirectional streams that may be opened concurrently by the local endpoint. This value is not communicated to the peer, it is only used for limiting concurrent streams opened locally by the application.
Implementations§
Source§impl Limits
impl Limits
pub const RECOMMENDED: Self
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
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