#[non_exhaustive]pub struct BfdStatusPacketCounts {
pub num_rx: Option<u32>,
pub num_rx_rejected: Option<u32>,
pub num_rx_successful: Option<u32>,
pub num_tx: Option<u32>,
/* private fields */
}Available on crate feature
routers only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.num_rx: Option<u32>Number of packets received since the beginning of the current BFD session.
num_rx_rejected: Option<u32>Number of packets received that were rejected because of errors since the beginning of the current BFD session.
num_rx_successful: Option<u32>Number of packets received that were successfully processed since the beginning of the current BFD session.
num_tx: Option<u32>Number of packets transmitted since the beginning of the current BFD session.
Implementations§
Source§impl BfdStatusPacketCounts
impl BfdStatusPacketCounts
pub fn new() -> Self
Sourcepub fn set_num_rx<T>(self, v: T) -> Self
pub fn set_num_rx<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_num_rx<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_num_rx<T>(self, v: Option<T>) -> Self
Sourcepub fn set_num_rx_rejected<T>(self, v: T) -> Self
pub fn set_num_rx_rejected<T>(self, v: T) -> Self
Sets the value of num_rx_rejected.
§Example
ⓘ
let x = BfdStatusPacketCounts::new().set_num_rx_rejected(42_u32);Sourcepub fn set_or_clear_num_rx_rejected<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_num_rx_rejected<T>(self, v: Option<T>) -> Self
Sets or clears the value of num_rx_rejected.
§Example
ⓘ
let x = BfdStatusPacketCounts::new().set_or_clear_num_rx_rejected(Some(42_u32));
let x = BfdStatusPacketCounts::new().set_or_clear_num_rx_rejected(None::<u32>);Sourcepub fn set_num_rx_successful<T>(self, v: T) -> Self
pub fn set_num_rx_successful<T>(self, v: T) -> Self
Sets the value of num_rx_successful.
§Example
ⓘ
let x = BfdStatusPacketCounts::new().set_num_rx_successful(42_u32);Sourcepub fn set_or_clear_num_rx_successful<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_num_rx_successful<T>(self, v: Option<T>) -> Self
Sets or clears the value of num_rx_successful.
§Example
ⓘ
let x = BfdStatusPacketCounts::new().set_or_clear_num_rx_successful(Some(42_u32));
let x = BfdStatusPacketCounts::new().set_or_clear_num_rx_successful(None::<u32>);Sourcepub fn set_num_tx<T>(self, v: T) -> Self
pub fn set_num_tx<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for BfdStatusPacketCounts
impl Clone for BfdStatusPacketCounts
Source§fn clone(&self) -> BfdStatusPacketCounts
fn clone(&self) -> BfdStatusPacketCounts
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 BfdStatusPacketCounts
impl Debug for BfdStatusPacketCounts
Source§impl Default for BfdStatusPacketCounts
impl Default for BfdStatusPacketCounts
Source§fn default() -> BfdStatusPacketCounts
fn default() -> BfdStatusPacketCounts
Returns the “default value” for a type. Read more
Source§impl Message for BfdStatusPacketCounts
impl Message for BfdStatusPacketCounts
Source§impl PartialEq for BfdStatusPacketCounts
impl PartialEq for BfdStatusPacketCounts
impl StructuralPartialEq for BfdStatusPacketCounts
Auto Trait Implementations§
impl Freeze for BfdStatusPacketCounts
impl RefUnwindSafe for BfdStatusPacketCounts
impl Send for BfdStatusPacketCounts
impl Sync for BfdStatusPacketCounts
impl Unpin for BfdStatusPacketCounts
impl UnwindSafe for BfdStatusPacketCounts
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