Struct netlink_packet_route::rule::RuleMessage
source · #[non_exhaustive]pub struct RuleMessage {
pub header: RuleHeader,
pub attributes: Vec<RuleAttribute>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.header: RuleHeader
§attributes: Vec<RuleAttribute>
Trait Implementations§
source§impl Clone for RuleMessage
impl Clone for RuleMessage
source§fn clone(&self) -> RuleMessage
fn clone(&self) -> RuleMessage
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 RuleMessage
impl Debug for RuleMessage
source§impl Default for RuleMessage
impl Default for RuleMessage
source§fn default() -> RuleMessage
fn default() -> RuleMessage
Returns the “default value” for a type. Read more
source§impl Emitable for RuleMessage
impl Emitable for RuleMessage
source§impl<'a, T: AsRef<[u8]> + 'a> Parseable<RuleMessageBuffer<&'a T>> for RuleMessage
impl<'a, T: AsRef<[u8]> + 'a> Parseable<RuleMessageBuffer<&'a T>> for RuleMessage
source§fn parse(buf: &RuleMessageBuffer<&'a T>) -> Result<Self, DecodeError>
fn parse(buf: &RuleMessageBuffer<&'a T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for RuleMessage
impl PartialEq for RuleMessage
source§fn eq(&self, other: &RuleMessage) -> bool
fn eq(&self, other: &RuleMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RuleMessage
impl StructuralPartialEq for RuleMessage
Auto Trait Implementations§
impl RefUnwindSafe for RuleMessage
impl Send for RuleMessage
impl Sync for RuleMessage
impl Unpin for RuleMessage
impl UnwindSafe for RuleMessage
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