pub enum RtaTypeWrapper {
Ifla(Ifla),
Ifa(Ifa),
Rta(Rta),
Tca(Tca),
Nda(Nda),
IflaInfo(IflaInfo),
UnrecognizedConst(c_ushort),
}
Expand description
Wrapper that is usable for all values in
Rtattr
field, rta_type
Variants§
Ifla(Ifla)
Ifa(Ifa)
Rta(Rta)
Tca(Tca)
Nda(Nda)
IflaInfo(IflaInfo)
UnrecognizedConst(c_ushort)
Constant could not be parsed into a type
Trait Implementations§
Source§impl Clone for RtaTypeWrapper
impl Clone for RtaTypeWrapper
Source§fn clone(&self) -> RtaTypeWrapper
fn clone(&self) -> RtaTypeWrapper
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 RtaTypeWrapper
impl Debug for RtaTypeWrapper
Source§impl From<Ifa> for RtaTypeWrapper
impl From<Ifa> for RtaTypeWrapper
Source§impl From<Ifla> for RtaTypeWrapper
impl From<Ifla> for RtaTypeWrapper
Source§impl From<IflaInfo> for RtaTypeWrapper
impl From<IflaInfo> for RtaTypeWrapper
Source§impl From<Nda> for RtaTypeWrapper
impl From<Nda> for RtaTypeWrapper
Source§impl From<Rta> for RtaTypeWrapper
impl From<Rta> for RtaTypeWrapper
Source§impl From<RtaTypeWrapper> for c_ushort
impl From<RtaTypeWrapper> for c_ushort
Source§fn from(w: RtaTypeWrapper) -> Self
fn from(w: RtaTypeWrapper) -> Self
Converts to this type from the input type.
Source§impl From<Tca> for RtaTypeWrapper
impl From<Tca> for RtaTypeWrapper
Source§impl From<u16> for RtaTypeWrapper
impl From<u16> for RtaTypeWrapper
Source§impl<'lt> FromBytes<'lt> for RtaTypeWrapper
impl<'lt> FromBytes<'lt> for RtaTypeWrapper
Source§impl PartialEq for RtaTypeWrapper
impl PartialEq for RtaTypeWrapper
Source§impl Size for RtaTypeWrapper
impl Size for RtaTypeWrapper
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 RtaTypeWrapper
impl ToBytes for RtaTypeWrapper
Source§impl TypeSize for RtaTypeWrapper
impl TypeSize for RtaTypeWrapper
impl Copy for RtaTypeWrapper
impl Eq for RtaTypeWrapper
impl RtaType for RtaTypeWrapper
impl StructuralPartialEq for RtaTypeWrapper
Auto Trait Implementations§
impl Freeze for RtaTypeWrapper
impl RefUnwindSafe for RtaTypeWrapper
impl Send for RtaTypeWrapper
impl Sync for RtaTypeWrapper
impl Unpin for RtaTypeWrapper
impl UnwindSafe for RtaTypeWrapper
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