pub enum LogCfgCmdWrapper {
LogCmd(LogCmd),
UnrecognizedConst(u8),
}
Expand description
Wrapper that is valid anywhere that accepts a value
implementing the LogCfgCmd
trait
Variants§
Trait Implementations§
Source§impl Clone for LogCfgCmdWrapper
impl Clone for LogCfgCmdWrapper
Source§fn clone(&self) -> LogCfgCmdWrapper
fn clone(&self) -> LogCfgCmdWrapper
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 LogCfgCmdWrapper
impl Debug for LogCfgCmdWrapper
Source§impl From<LogCfgCmdWrapper> for u8
impl From<LogCfgCmdWrapper> for u8
Source§fn from(w: LogCfgCmdWrapper) -> Self
fn from(w: LogCfgCmdWrapper) -> Self
Converts to this type from the input type.
Source§impl From<LogCmd> for LogCfgCmdWrapper
impl From<LogCmd> for LogCfgCmdWrapper
Source§impl From<u8> for LogCfgCmdWrapper
impl From<u8> for LogCfgCmdWrapper
Source§impl<'lt> FromBytes<'lt> for LogCfgCmdWrapper
impl<'lt> FromBytes<'lt> for LogCfgCmdWrapper
Source§impl PartialEq for LogCfgCmdWrapper
impl PartialEq for LogCfgCmdWrapper
Source§impl Size for LogCfgCmdWrapper
impl Size for LogCfgCmdWrapper
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 LogCfgCmdWrapper
impl ToBytes for LogCfgCmdWrapper
Source§impl TypeSize for LogCfgCmdWrapper
impl TypeSize for LogCfgCmdWrapper
impl Copy for LogCfgCmdWrapper
impl Eq for LogCfgCmdWrapper
impl LogCfgCmd for LogCfgCmdWrapper
impl StructuralPartialEq for LogCfgCmdWrapper
Auto Trait Implementations§
impl Freeze for LogCfgCmdWrapper
impl RefUnwindSafe for LogCfgCmdWrapper
impl Send for LogCfgCmdWrapper
impl Sync for LogCfgCmdWrapper
impl Unpin for LogCfgCmdWrapper
impl UnwindSafe for LogCfgCmdWrapper
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