Struct netlink_packet_route::rtnl::neighbour::nlas::CacheInfoBuffer
source · [−]pub struct CacheInfoBuffer<T> { /* private fields */ }
Implementations
sourceimpl<T: AsRef<[u8]>> CacheInfoBuffer<T>
impl<T: AsRef<[u8]>> CacheInfoBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
sourceimpl<'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)
sourceimpl<'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)
sourceimpl<'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)
sourceimpl<T: AsRef<[u8]>> CacheInfoBuffer<T>
impl<T: AsRef<[u8]>> CacheInfoBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations
sourceimpl<T: Clone> Clone for CacheInfoBuffer<T>
impl<T: Clone> Clone for CacheInfoBuffer<T>
sourcefn clone(&self) -> CacheInfoBuffer<T>
fn clone(&self) -> CacheInfoBuffer<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for CacheInfoBuffer<T>
impl<T: Debug> Debug for CacheInfoBuffer<T>
sourceimpl<T: AsRef<[u8]>> Parseable<CacheInfoBuffer<T>> for CacheInfo
impl<T: AsRef<[u8]>> Parseable<CacheInfoBuffer<T>> for CacheInfo
sourcefn parse(buf: &CacheInfoBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &CacheInfoBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
sourceimpl<T: PartialEq> PartialEq<CacheInfoBuffer<T>> for CacheInfoBuffer<T>
impl<T: PartialEq> PartialEq<CacheInfoBuffer<T>> for CacheInfoBuffer<T>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &CacheInfoBuffer<T>) -> bool
fn ne(&self, other: &CacheInfoBuffer<T>) -> bool
This method tests for !=
.
impl<T: Copy> Copy for CacheInfoBuffer<T>
impl<T: Eq> Eq for CacheInfoBuffer<T>
impl<T> StructuralEq for CacheInfoBuffer<T>
impl<T> StructuralPartialEq for CacheInfoBuffer<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more