pub enum NlTypeWrapper {
Nlmsg(Nlmsg),
GenlId(GenlId),
Rtm(Rtm),
NetfilterMsg(NetfilterMsg),
UnrecognizedConst(u16),
}
Expand description
Wrapper that is usable with all values in
Nlmsghdr
field,
nl_type
.
Variants§
Nlmsg(Nlmsg)
GenlId(GenlId)
Rtm(Rtm)
NetfilterMsg(NetfilterMsg)
UnrecognizedConst(u16)
Constant could not be parsed into a type
Trait Implementations§
Source§impl Clone for NlTypeWrapper
impl Clone for NlTypeWrapper
Source§fn clone(&self) -> NlTypeWrapper
fn clone(&self) -> NlTypeWrapper
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 Debug for NlTypeWrapper
impl Debug for NlTypeWrapper
Source§impl From<GenlId> for NlTypeWrapper
impl From<GenlId> for NlTypeWrapper
Source§impl From<NetfilterMsg> for NlTypeWrapper
impl From<NetfilterMsg> for NlTypeWrapper
Source§fn from(e: NetfilterMsg) -> Self
fn from(e: NetfilterMsg) -> Self
Converts to this type from the input type.
Source§impl From<NlTypeWrapper> for u16
impl From<NlTypeWrapper> for u16
Source§fn from(w: NlTypeWrapper) -> Self
fn from(w: NlTypeWrapper) -> Self
Converts to this type from the input type.
Source§impl From<Nlmsg> for NlTypeWrapper
impl From<Nlmsg> for NlTypeWrapper
Source§impl From<Rtm> for NlTypeWrapper
impl From<Rtm> for NlTypeWrapper
Source§impl From<u16> for NlTypeWrapper
impl From<u16> for NlTypeWrapper
Source§impl<'lt> FromBytes<'lt> for NlTypeWrapper
impl<'lt> FromBytes<'lt> for NlTypeWrapper
Source§impl PartialEq for NlTypeWrapper
impl PartialEq for NlTypeWrapper
Source§impl Size for NlTypeWrapper
impl Size for NlTypeWrapper
Source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
Source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of of the payload and align it to
the required netlink byte alignment.
Source§impl ToBytes for NlTypeWrapper
impl ToBytes for NlTypeWrapper
Source§impl TypeSize for NlTypeWrapper
impl TypeSize for NlTypeWrapper
impl Copy for NlTypeWrapper
impl Eq for NlTypeWrapper
impl NlType for NlTypeWrapper
impl StructuralPartialEq for NlTypeWrapper
Auto Trait Implementations§
impl Freeze for NlTypeWrapper
impl RefUnwindSafe for NlTypeWrapper
impl Send for NlTypeWrapper
impl Sync for NlTypeWrapper
impl Unpin for NlTypeWrapper
impl UnwindSafe for NlTypeWrapper
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