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