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