#[repr(C, packed(4))]pub struct IflaBridgeId {
pub prio: u16,
pub addr: [u8; 6],
}Available on crate feature
rt-link only.Fields§
§prio: u16§addr: [u8; 6]Implementations§
Source§impl IflaBridgeId
impl IflaBridgeId
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from slice
Sourcepub fn new_from_zeroed(other: &[u8]) -> Self
pub fn new_from_zeroed(other: &[u8]) -> Self
Copy from contents from another slice, padding with zeros or truncating when needed
pub fn new_from_array(buf: [u8; 8]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 8]
pub fn from_array(buf: &[u8; 8]) -> &Self
pub fn into_array(self) -> [u8; 8]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for IflaBridgeId
impl Clone for IflaBridgeId
Source§impl Debug for IflaBridgeId
impl Debug for IflaBridgeId
Auto Trait Implementations§
impl Freeze for IflaBridgeId
impl RefUnwindSafe for IflaBridgeId
impl Send for IflaBridgeId
impl Sync for IflaBridgeId
impl Unpin for IflaBridgeId
impl UnsafeUnpin for IflaBridgeId
impl UnwindSafe for IflaBridgeId
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