Struct netlink_packet_route::rtnl::address::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]>> CacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]>> CacheInfoBuffer<T>
pub fn ifa_preferred(&self) -> i32
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
pub fn set_ifa_preferred(&mut self, value: i32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
pub fn set_ifa_valid(&mut self, value: i32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
pub fn set_cstamp(&mut self, value: i32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> CacheInfoBuffer<T>
pub fn set_tstamp(&mut self, value: i32)
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.