Struct netlink_packet_route::rtnl::neighbour::nlas::CacheInfoBuffer
source · pub struct CacheInfoBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> CacheInfoBuffer<T>
impl<T: AsRef<[u8]>> CacheInfoBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
pub fn set_confirmed(&mut self, value: u32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
pub fn set_updated(&mut self, value: u32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
pub fn set_refcnt(&mut self, value: u32)
source§impl<T: AsRef<[u8]>> CacheInfoBuffer<T>
impl<T: AsRef<[u8]>> CacheInfoBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: Clone> Clone for CacheInfoBuffer<T>
impl<T: Clone> Clone for CacheInfoBuffer<T>
source§fn clone(&self) -> CacheInfoBuffer<T>
fn clone(&self) -> CacheInfoBuffer<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 CacheInfoBuffer<T>
impl<T: Debug> Debug for CacheInfoBuffer<T>
source§impl<T: AsRef<[u8]>> Parseable<CacheInfoBuffer<T>> for CacheInfo
impl<T: AsRef<[u8]>> Parseable<CacheInfoBuffer<T>> for CacheInfo
source§fn parse(buf: &CacheInfoBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &CacheInfoBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl<T: PartialEq> PartialEq for CacheInfoBuffer<T>
impl<T: PartialEq> PartialEq for CacheInfoBuffer<T>
source§fn eq(&self, other: &CacheInfoBuffer<T>) -> bool
fn eq(&self, other: &CacheInfoBuffer<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for CacheInfoBuffer<T>
impl<T: Eq> Eq for CacheInfoBuffer<T>
impl<T> StructuralPartialEq for CacheInfoBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for CacheInfoBuffer<T>where
T: Freeze,
impl<T> RefUnwindSafe for CacheInfoBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for CacheInfoBuffer<T>where
T: Send,
impl<T> Sync for CacheInfoBuffer<T>where
T: Sync,
impl<T> Unpin for CacheInfoBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for CacheInfoBuffer<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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)