pub struct ReceiveLimits { /* private fields */ }Expand description
Validated local receive and advertisement limits.
Implementations§
Source§impl ReceiveLimits
impl ReceiveLimits
Sourcepub const fn udp(advertised: usize) -> Result<Self, MessageSizeError>
pub const fn udp(advertised: usize) -> Result<Self, MessageSizeError>
Validate a UDP advertisement while retaining the fixed receive tolerance.
Sourcepub const fn tcp(limit: usize) -> Result<Self, MessageSizeError>
pub const fn tcp(limit: usize) -> Result<Self, MessageSizeError>
Validate one exact total-message limit for TCP framing and advertisement.
Sourcepub const fn advertised(self) -> MessageSize
pub const fn advertised(self) -> MessageSize
The local capacity placed in V3 msgMaxSize.
Trait Implementations§
Source§impl Clone for ReceiveLimits
impl Clone for ReceiveLimits
Source§fn clone(&self) -> ReceiveLimits
fn clone(&self) -> ReceiveLimits
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 ReceiveLimits
Source§impl Debug for ReceiveLimits
impl Debug for ReceiveLimits
impl Eq for ReceiveLimits
Source§impl PartialEq for ReceiveLimits
impl PartialEq for ReceiveLimits
impl StructuralPartialEq for ReceiveLimits
Auto Trait Implementations§
impl Freeze for ReceiveLimits
impl RefUnwindSafe for ReceiveLimits
impl Send for ReceiveLimits
impl Sync for ReceiveLimits
impl Unpin for ReceiveLimits
impl UnsafeUnpin for ReceiveLimits
impl UnwindSafe for ReceiveLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.