#[repr(C, packed(4))]pub struct Ndmsg {
pub ndm_family: u8,
pub _ndm_pad: [u8; 3],
pub ndm_ifindex: i32,
pub ndm_state: u16,
pub ndm_flags: u8,
pub ndm_type: u8,
}Available on crate feature
rt-neigh only.Fields§
§ndm_family: u8§_ndm_pad: [u8; 3]§ndm_ifindex: i32§ndm_state: u16Associated type: NudState (enum)
ndm_flags: u8Associated type: NtfFlags (enum)
ndm_type: u8Associated type: RtmType (enum)
Implementations§
Source§impl Ndmsg
impl Ndmsg
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; 12]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 12]
pub fn from_array(buf: &[u8; 12]) -> &Self
pub fn into_array(self) -> [u8; 12]
pub const fn len() -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ndmsg
impl RefUnwindSafe for Ndmsg
impl Send for Ndmsg
impl Sync for Ndmsg
impl Unpin for Ndmsg
impl UnsafeUnpin for Ndmsg
impl UnwindSafe for Ndmsg
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