Struct netlink_packet_route::link::BridgeIdBuffer
source · pub struct BridgeIdBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> BridgeIdBuffer<T>
impl<T: AsRef<[u8]>> BridgeIdBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> BridgeIdBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> BridgeIdBuffer<T>
pub fn set_priority(&mut self, value: u16)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> BridgeIdBuffer<&'a mut T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> BridgeIdBuffer<&'a mut T>
pub fn address_mut(&mut self) -> &mut [u8] ⓘ
source§impl<T: AsRef<[u8]>> BridgeIdBuffer<T>
impl<T: AsRef<[u8]>> BridgeIdBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: Clone> Clone for BridgeIdBuffer<T>
impl<T: Clone> Clone for BridgeIdBuffer<T>
source§fn clone(&self) -> BridgeIdBuffer<T>
fn clone(&self) -> BridgeIdBuffer<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 BridgeIdBuffer<T>
impl<T: Debug> Debug for BridgeIdBuffer<T>
source§impl<T: AsRef<[u8]> + ?Sized> Parseable<BridgeIdBuffer<&T>> for BridgeId
impl<T: AsRef<[u8]> + ?Sized> Parseable<BridgeIdBuffer<&T>> for BridgeId
source§fn parse(buf: &BridgeIdBuffer<&T>) -> Result<Self, DecodeError>
fn parse(buf: &BridgeIdBuffer<&T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl<T: PartialEq> PartialEq for BridgeIdBuffer<T>
impl<T: PartialEq> PartialEq for BridgeIdBuffer<T>
source§fn eq(&self, other: &BridgeIdBuffer<T>) -> bool
fn eq(&self, other: &BridgeIdBuffer<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for BridgeIdBuffer<T>
impl<T: Eq> Eq for BridgeIdBuffer<T>
impl<T> StructuralPartialEq for BridgeIdBuffer<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for BridgeIdBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for BridgeIdBuffer<T>where
T: Send,
impl<T> Sync for BridgeIdBuffer<T>where
T: Sync,
impl<T> Unpin for BridgeIdBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for BridgeIdBuffer<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