Struct netlink_packet_route::rtnl::route::nlas::MfcStatsBuffer
source · pub struct MfcStatsBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> MfcStatsBuffer<T>
impl<T: AsRef<[u8]>> MfcStatsBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MfcStatsBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MfcStatsBuffer<T>
pub fn set_packets(&mut self, value: u64)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MfcStatsBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> MfcStatsBuffer<T>
pub fn set_wrong_if(&mut self, value: u64)
source§impl<T: AsRef<[u8]>> MfcStatsBuffer<T>
impl<T: AsRef<[u8]>> MfcStatsBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: Clone> Clone for MfcStatsBuffer<T>
impl<T: Clone> Clone for MfcStatsBuffer<T>
source§fn clone(&self) -> MfcStatsBuffer<T>
fn clone(&self) -> MfcStatsBuffer<T>
Returns a copy 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<T: Debug> Debug for MfcStatsBuffer<T>
impl<T: Debug> Debug for MfcStatsBuffer<T>
source§impl<T: AsRef<[u8]>> Parseable<MfcStatsBuffer<T>> for MfcStats
impl<T: AsRef<[u8]>> Parseable<MfcStatsBuffer<T>> for MfcStats
source§fn parse(buf: &MfcStatsBuffer<T>) -> Result<MfcStats, DecodeError>
fn parse(buf: &MfcStatsBuffer<T>) -> Result<MfcStats, DecodeError>
Deserialize the current type.