Struct netlink_packet_route::route::RouteMfcStatsBuffer
source · pub struct RouteMfcStatsBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> RouteMfcStatsBuffer<T>
impl<T: AsRef<[u8]>> RouteMfcStatsBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteMfcStatsBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteMfcStatsBuffer<T>
pub fn set_packets(&mut self, value: u64)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteMfcStatsBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteMfcStatsBuffer<T>
pub fn set_wrong_if(&mut self, value: u64)
source§impl<T: AsRef<[u8]>> RouteMfcStatsBuffer<T>
impl<T: AsRef<[u8]>> RouteMfcStatsBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: Clone> Clone for RouteMfcStatsBuffer<T>
impl<T: Clone> Clone for RouteMfcStatsBuffer<T>
source§fn clone(&self) -> RouteMfcStatsBuffer<T>
fn clone(&self) -> RouteMfcStatsBuffer<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 RouteMfcStatsBuffer<T>
impl<T: Debug> Debug for RouteMfcStatsBuffer<T>
source§impl<T: AsRef<[u8]>> Parseable<RouteMfcStatsBuffer<T>> for RouteMfcStats
impl<T: AsRef<[u8]>> Parseable<RouteMfcStatsBuffer<T>> for RouteMfcStats
source§fn parse(buf: &RouteMfcStatsBuffer<T>) -> Result<RouteMfcStats, DecodeError>
fn parse(buf: &RouteMfcStatsBuffer<T>) -> Result<RouteMfcStats, DecodeError>
Deserialize the current type.
source§impl<T: PartialEq> PartialEq for RouteMfcStatsBuffer<T>
impl<T: PartialEq> PartialEq for RouteMfcStatsBuffer<T>
impl<T: Copy> Copy for RouteMfcStatsBuffer<T>
impl<T: Eq> Eq for RouteMfcStatsBuffer<T>
impl<T> StructuralPartialEq for RouteMfcStatsBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for RouteMfcStatsBuffer<T>where
T: Freeze,
impl<T> RefUnwindSafe for RouteMfcStatsBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for RouteMfcStatsBuffer<T>where
T: Send,
impl<T> Sync for RouteMfcStatsBuffer<T>where
T: Sync,
impl<T> Unpin for RouteMfcStatsBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for RouteMfcStatsBuffer<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)