#[non_exhaustive]pub enum LimitType {
Hard,
Soft,
Dynamic,
}Expand description
Set Peer Bandwidth’s Limit Type byte (§5.4.5).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hard
Peer SHOULD limit output to exactly the indicated window.
Soft
Peer SHOULD limit output to the indicated window or its current limit, whichever is smaller.
Dynamic
If the previous Limit Type was Hard, treat as Hard; otherwise ignore this message.
Implementations§
Trait Implementations§
impl Copy for LimitType
impl Eq for LimitType
impl StructuralPartialEq for LimitType
Auto Trait Implementations§
impl Freeze for LimitType
impl RefUnwindSafe for LimitType
impl Send for LimitType
impl Sync for LimitType
impl Unpin for LimitType
impl UnsafeUnpin for LimitType
impl UnwindSafe for LimitType
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