pub struct ServerProtocolLimits { /* private fields */ }Expand description
Conservative allocation limits applied to newly accepted transports.
Implementations§
Source§impl ServerProtocolLimits
impl ServerProtocolLimits
Sourcepub const fn with_max_frame_len(self, bytes: usize) -> Self
pub const fn with_max_frame_len(self, bytes: usize) -> Self
Returns limits with a different maximum tagged-frame length.
Sourcepub const fn with_max_pre_startup_packet_len(self, bytes: usize) -> Self
pub const fn with_max_pre_startup_packet_len(self, bytes: usize) -> Self
Returns limits with a different maximum untagged startup-packet length.
Trait Implementations§
Source§impl Clone for ServerProtocolLimits
impl Clone for ServerProtocolLimits
Source§fn clone(&self) -> ServerProtocolLimits
fn clone(&self) -> ServerProtocolLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ServerProtocolLimits
Source§impl Debug for ServerProtocolLimits
impl Debug for ServerProtocolLimits
Source§impl Default for ServerProtocolLimits
impl Default for ServerProtocolLimits
impl Eq for ServerProtocolLimits
Source§impl PartialEq for ServerProtocolLimits
impl PartialEq for ServerProtocolLimits
impl StructuralPartialEq for ServerProtocolLimits
Auto Trait Implementations§
impl Freeze for ServerProtocolLimits
impl RefUnwindSafe for ServerProtocolLimits
impl Send for ServerProtocolLimits
impl Sync for ServerProtocolLimits
impl Unpin for ServerProtocolLimits
impl UnsafeUnpin for ServerProtocolLimits
impl UnwindSafe for ServerProtocolLimits
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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