pub struct Interface(pub u32);Expand description
Interface identifier
Compact encoding for interface identification. Top 2 bits indicate format:
- 00 = Single interface (value is ifIndex)
- 01 = Packet discarded (value is reason code)
- 10 = Multiple destination interfaces (value is number of interfaces)
§XDR Definition (sFlow v5)
typedef unsigned int interface;
/* Encoding of the interface value:
Bits 31-30: Format
00 = ifIndex (0-0x3FFFFFFF)
01 = Packet discarded
10 = Multiple destinations
Bits 29-0: Value */Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for Interface
impl Eq for Interface
impl StructuralPartialEq for Interface
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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