#[repr(u8)]pub enum LimitType {
Hard = 0,
Soft = 1,
Dynamic = 2,
Other = 255,
}
Expand description
Representation of the limit type field in the PeerBandwidth message.
Variants correspond to respectively following numbers:
Pattern | Number |
---|---|
Hard | 0 |
Soft | 1 |
Dynamic | 2 |
Other | other numbers |
Variants§
Trait Implementations§
Source§impl Ord for LimitType
impl Ord for LimitType
Source§impl PartialEq<LimitType> for PeerBandwidth
impl PartialEq<LimitType> for PeerBandwidth
Source§impl PartialEq<PeerBandwidth> for LimitType
impl PartialEq<PeerBandwidth> for LimitType
Source§impl PartialOrd for LimitType
impl PartialOrd for LimitType
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 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