pub struct Limits {
pub max_packet_len: usize,
pub max_peers: usize,
}Expand description
Explicit resource policy, not an MTU/UDP delivery guarantee. Counts include duplicate and uninteresting complete records; bytes include every tail.
Fields§
§max_packet_len: usize§max_peers: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin 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