pub struct Limits {
pub max_send_buffer_size: u32,
pub max_open_local_unidirectional_streams: VarInt,
}Expand description
Per-stream limits
Fields
max_send_buffer_size: u32The maximum send buffer size for a Stream
max_open_local_unidirectional_streams: VarIntThe 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.
Implementations
sourceimpl Limits
impl Limits
pub const RECOMMENDED: Self = Self { max_send_buffer_size: DEFAULT_STREAM_MAX_SEND_BUFFER_SIZE, max_open_local_unidirectional_streams: InitialMaxStreamsUni::RECOMMENDED.as_varint(), }
Trait Implementations
impl Copy for Limits
impl Eq for Limits
impl StructuralEq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more