#[repr(C, packed(4))]pub struct TcPeditKey {
pub mask: u32,
pub val: u32,
pub off: u32,
pub at: u32,
pub offmask: u32,
pub shift: u32,
}Available on crate feature
tc only.Fields§
§mask: u32§val: u32§off: u32§at: u32§offmask: u32§shift: u32Implementations§
Source§impl TcPeditKey
impl TcPeditKey
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; 24]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 24]
pub fn from_array(buf: &[u8; 24]) -> &Self
pub fn into_array(self) -> [u8; 24]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for TcPeditKey
impl Clone for TcPeditKey
Source§impl Debug for TcPeditKey
impl Debug for TcPeditKey
Auto Trait Implementations§
impl Freeze for TcPeditKey
impl RefUnwindSafe for TcPeditKey
impl Send for TcPeditKey
impl Sync for TcPeditKey
impl Unpin for TcPeditKey
impl UnsafeUnpin for TcPeditKey
impl UnwindSafe for TcPeditKey
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