Struct netlink_packet_route::route::RouteCacheInfoBuffer
source · pub struct RouteCacheInfoBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> RouteCacheInfoBuffer<T>
impl<T: AsRef<[u8]>> RouteCacheInfoBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteCacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteCacheInfoBuffer<T>
pub fn set_clntref(&mut self, value: u32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteCacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteCacheInfoBuffer<T>
pub fn set_last_use(&mut self, value: u32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteCacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteCacheInfoBuffer<T>
pub fn set_expires(&mut self, value: u32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteCacheInfoBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> RouteCacheInfoBuffer<T>
pub fn set_ts_age(&mut self, value: u32)
source§impl<T: AsRef<[u8]>> RouteCacheInfoBuffer<T>
impl<T: AsRef<[u8]>> RouteCacheInfoBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: Clone> Clone for RouteCacheInfoBuffer<T>
impl<T: Clone> Clone for RouteCacheInfoBuffer<T>
source§fn clone(&self) -> RouteCacheInfoBuffer<T>
fn clone(&self) -> RouteCacheInfoBuffer<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 RouteCacheInfoBuffer<T>
impl<T: Debug> Debug for RouteCacheInfoBuffer<T>
source§impl<T: AsRef<[u8]>> Parseable<RouteCacheInfoBuffer<T>> for RouteCacheInfo
impl<T: AsRef<[u8]>> Parseable<RouteCacheInfoBuffer<T>> for RouteCacheInfo
source§fn parse(buf: &RouteCacheInfoBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &RouteCacheInfoBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl<T: PartialEq> PartialEq for RouteCacheInfoBuffer<T>
impl<T: PartialEq> PartialEq for RouteCacheInfoBuffer<T>
impl<T: Copy> Copy for RouteCacheInfoBuffer<T>
impl<T: Eq> Eq for RouteCacheInfoBuffer<T>
impl<T> StructuralPartialEq for RouteCacheInfoBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for RouteCacheInfoBuffer<T>where
T: Freeze,
impl<T> RefUnwindSafe for RouteCacheInfoBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for RouteCacheInfoBuffer<T>where
T: Send,
impl<T> Sync for RouteCacheInfoBuffer<T>where
T: Sync,
impl<T> Unpin for RouteCacheInfoBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for RouteCacheInfoBuffer<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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)