pub struct Limits {
pub packets: usize,
pub bytes: usize,
}Expand description
Aggregate queue budgets. Defaults: 128 packets and 153600 payload bytes. Both limits apply independently, including to later loss records. Bytes need not equal packets * 1200; a smaller byte cap is useful for mixed packet sizes.
Fields§
§packets: usizeMaximum admitted datagrams, inclusive; 0..=4096.
bytes: usizeMaximum sum of admitted payload lengths, inclusive; 0..=4915200.
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin 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