#[repr(C, packed(4))]pub struct Nfgenmsg {
pub nfgen_family: u8,
pub version: u8,
pub _res_id_be: u16,
}Available on crate feature
conntrack only.Fields§
§nfgen_family: u8§version: u8§_res_id_be: u16Implementations§
Source§impl Nfgenmsg
impl Nfgenmsg
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; 4]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 4]
pub fn from_array(buf: &[u8; 4]) -> &Self
pub fn into_array(self) -> [u8; 4]
pub const fn len() -> usize
pub fn res_id(&self) -> u16
pub fn set_res_id(&mut self, value: u16)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Nfgenmsg
impl RefUnwindSafe for Nfgenmsg
impl Send for Nfgenmsg
impl Sync for Nfgenmsg
impl Unpin for Nfgenmsg
impl UnsafeUnpin for Nfgenmsg
impl UnwindSafe for Nfgenmsg
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