#[non_exhaustive]pub enum ControlMessage {
BatchBegin,
BatchEnd,
Other {
message_type: u8,
attributes: Vec<DefaultNla>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ControlMessage
impl ControlMessage
pub fn message_type(&self) -> ControlMessageType
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§impl Debug for ControlMessage
impl Debug for ControlMessage
Source§impl Emitable for ControlMessage
impl Emitable for ControlMessage
impl Eq for ControlMessage
Source§impl From<ControlMessage> for NetfilterMessageInner
impl From<ControlMessage> for NetfilterMessageInner
Source§fn from(message: ControlMessage) -> Self
fn from(message: ControlMessage) -> Self
Converts to this type from the input type.
Source§impl ParseableParametrized<[u8], u8> for ControlMessage
impl ParseableParametrized<[u8], u8> for ControlMessage
Source§fn parse_with_param(buf: &[u8], message_type: u8) -> Result<Self, DecodeError>
fn parse_with_param(buf: &[u8], message_type: u8) -> Result<Self, DecodeError>
Deserialize the current type.
Source§impl PartialEq for ControlMessage
impl PartialEq for ControlMessage
impl StructuralPartialEq for ControlMessage
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnsafeUnpin for ControlMessage
impl UnwindSafe for ControlMessage
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