Struct netlink_packet_route::tc::TcStatsBasicBuffer
source · pub struct TcStatsBasicBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> TcStatsBasicBuffer<T>
impl<T: AsRef<[u8]>> TcStatsBasicBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> TcStatsBasicBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> TcStatsBasicBuffer<T>
pub fn set_packets(&mut self, value: u32)
source§impl<T: AsRef<[u8]>> TcStatsBasicBuffer<T>
impl<T: AsRef<[u8]>> TcStatsBasicBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: Clone> Clone for TcStatsBasicBuffer<T>
impl<T: Clone> Clone for TcStatsBasicBuffer<T>
source§fn clone(&self) -> TcStatsBasicBuffer<T>
fn clone(&self) -> TcStatsBasicBuffer<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 TcStatsBasicBuffer<T>
impl<T: Debug> Debug for TcStatsBasicBuffer<T>
source§impl<T: AsRef<[u8]>> Parseable<TcStatsBasicBuffer<T>> for TcStatsBasic
impl<T: AsRef<[u8]>> Parseable<TcStatsBasicBuffer<T>> for TcStatsBasic
source§fn parse(buf: &TcStatsBasicBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &TcStatsBasicBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl<T: PartialEq> PartialEq for TcStatsBasicBuffer<T>
impl<T: PartialEq> PartialEq for TcStatsBasicBuffer<T>
source§fn eq(&self, other: &TcStatsBasicBuffer<T>) -> bool
fn eq(&self, other: &TcStatsBasicBuffer<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for TcStatsBasicBuffer<T>
impl<T: Eq> Eq for TcStatsBasicBuffer<T>
impl<T> StructuralEq for TcStatsBasicBuffer<T>
impl<T> StructuralPartialEq for TcStatsBasicBuffer<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TcStatsBasicBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for TcStatsBasicBuffer<T>where
T: Send,
impl<T> Sync for TcStatsBasicBuffer<T>where
T: Sync,
impl<T> Unpin for TcStatsBasicBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for TcStatsBasicBuffer<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