pub struct InterfaceExpanded {
pub format: u32,
pub value: u32,
}Expand description
Expanded interface (for ifIndex >= 2^24)
Used when the interface index exceeds 30 bits (1,073,741,823).
§XDR Definition (sFlow v5)
struct interface_expanded {
unsigned int format; /* interface format */
unsigned int value; /* interface value,
Note: 0xFFFFFFFF is the maximum value and must be used
to indicate traffic originating or terminating in device
(do not use 0x3FFFFFFF value from compact encoding example) */
}ERRATUM: 0xFFFFFFFF is the maximum value and must be used to indicate traffic originating or terminating in device (do not use 0x3FFFFFFF value from compact encoding example).
Fields§
§format: u32Interface format (0 = ifIndex, 1 = packet discarded, 2 = multiple destinations)
value: u32Interface value ERRATUM: 0xFFFFFFFF indicates traffic originating or terminating in device
Trait Implementations§
Source§impl Clone for InterfaceExpanded
impl Clone for InterfaceExpanded
Source§fn clone(&self) -> InterfaceExpanded
fn clone(&self) -> InterfaceExpanded
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterfaceExpanded
impl Debug for InterfaceExpanded
Source§impl PartialEq for InterfaceExpanded
impl PartialEq for InterfaceExpanded
impl Copy for InterfaceExpanded
impl Eq for InterfaceExpanded
impl StructuralPartialEq for InterfaceExpanded
Auto Trait Implementations§
impl Freeze for InterfaceExpanded
impl RefUnwindSafe for InterfaceExpanded
impl Send for InterfaceExpanded
impl Sync for InterfaceExpanded
impl Unpin for InterfaceExpanded
impl UnwindSafe for InterfaceExpanded
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