pub enum IncomingPacketSizeLimit {
Default,
Unlimited,
Bytes(u32),
}Expand description
Controls how incoming packet size limits are enforced locally.
Variants§
Default
Enforce the default incoming packet size limit.
Unlimited
Disable incoming packet size checks.
Bytes(u32)
Enforce a user-specified maximum size.
Trait Implementations§
Source§impl Clone for IncomingPacketSizeLimit
impl Clone for IncomingPacketSizeLimit
Source§fn clone(&self) -> IncomingPacketSizeLimit
fn clone(&self) -> IncomingPacketSizeLimit
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 moreSource§impl Debug for IncomingPacketSizeLimit
impl Debug for IncomingPacketSizeLimit
Source§impl Default for IncomingPacketSizeLimit
impl Default for IncomingPacketSizeLimit
Source§fn default() -> IncomingPacketSizeLimit
fn default() -> IncomingPacketSizeLimit
Returns the “default value” for a type. Read more
Source§impl PartialEq for IncomingPacketSizeLimit
impl PartialEq for IncomingPacketSizeLimit
Source§fn eq(&self, other: &IncomingPacketSizeLimit) -> bool
fn eq(&self, other: &IncomingPacketSizeLimit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for IncomingPacketSizeLimit
impl Eq for IncomingPacketSizeLimit
impl StructuralPartialEq for IncomingPacketSizeLimit
Auto Trait Implementations§
impl Freeze for IncomingPacketSizeLimit
impl RefUnwindSafe for IncomingPacketSizeLimit
impl Send for IncomingPacketSizeLimit
impl Sync for IncomingPacketSizeLimit
impl Unpin for IncomingPacketSizeLimit
impl UnsafeUnpin for IncomingPacketSizeLimit
impl UnwindSafe for IncomingPacketSizeLimit
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