pub struct DataSource(pub u32);Expand description
sFlow data source identifier
Identifies the source of the data. Top 8 bits = source type, bottom 24 bits = index.
§XDR Definition (sFlow v5)
typedef unsigned int sflow_data_source;
/* The sflow_data_source is encoded as follows:
The most significant byte of the sflow_data_source is used to indicate the type of
sFlowDataSource (e.g. ifIndex, smonVlanDataSource, entPhysicalEntry) and the lower
three bytes contain the relevant index value. */Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Clone for DataSource
impl Clone for DataSource
Source§fn clone(&self) -> DataSource
fn clone(&self) -> DataSource
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 DataSource
impl Debug for DataSource
Source§impl PartialEq for DataSource
impl PartialEq for DataSource
impl Copy for DataSource
impl Eq for DataSource
impl StructuralPartialEq for DataSource
Auto Trait Implementations§
impl Freeze for DataSource
impl RefUnwindSafe for DataSource
impl Send for DataSource
impl Sync for DataSource
impl Unpin for DataSource
impl UnwindSafe for DataSource
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