Enum netlink_packet_route::rtnl::RtnlMessage
source · #[non_exhaustive]pub enum RtnlMessage {
Show 36 variants
NewLink(LinkMessage),
DelLink(LinkMessage),
GetLink(LinkMessage),
SetLink(LinkMessage),
NewLinkProp(LinkMessage),
DelLinkProp(LinkMessage),
NewAddress(AddressMessage),
DelAddress(AddressMessage),
GetAddress(AddressMessage),
NewNeighbour(NeighbourMessage),
GetNeighbour(NeighbourMessage),
DelNeighbour(NeighbourMessage),
NewNeighbourTable(NeighbourTableMessage),
GetNeighbourTable(NeighbourTableMessage),
SetNeighbourTable(NeighbourTableMessage),
NewRoute(RouteMessage),
DelRoute(RouteMessage),
GetRoute(RouteMessage),
NewQueueDiscipline(TcMessage),
DelQueueDiscipline(TcMessage),
GetQueueDiscipline(TcMessage),
NewTrafficClass(TcMessage),
DelTrafficClass(TcMessage),
GetTrafficClass(TcMessage),
NewTrafficFilter(TcMessage),
DelTrafficFilter(TcMessage),
GetTrafficFilter(TcMessage),
NewTrafficChain(TcMessage),
DelTrafficChain(TcMessage),
GetTrafficChain(TcMessage),
NewNsId(NsidMessage),
DelNsId(NsidMessage),
GetNsId(NsidMessage),
NewRule(RuleMessage),
DelRule(RuleMessage),
GetRule(RuleMessage),
}
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.
NewLink(LinkMessage)
DelLink(LinkMessage)
GetLink(LinkMessage)
SetLink(LinkMessage)
NewLinkProp(LinkMessage)
DelLinkProp(LinkMessage)
NewAddress(AddressMessage)
DelAddress(AddressMessage)
GetAddress(AddressMessage)
NewNeighbour(NeighbourMessage)
GetNeighbour(NeighbourMessage)
DelNeighbour(NeighbourMessage)
NewNeighbourTable(NeighbourTableMessage)
GetNeighbourTable(NeighbourTableMessage)
SetNeighbourTable(NeighbourTableMessage)
NewRoute(RouteMessage)
DelRoute(RouteMessage)
GetRoute(RouteMessage)
NewQueueDiscipline(TcMessage)
DelQueueDiscipline(TcMessage)
GetQueueDiscipline(TcMessage)
NewTrafficClass(TcMessage)
DelTrafficClass(TcMessage)
GetTrafficClass(TcMessage)
NewTrafficFilter(TcMessage)
DelTrafficFilter(TcMessage)
GetTrafficFilter(TcMessage)
NewTrafficChain(TcMessage)
DelTrafficChain(TcMessage)
GetTrafficChain(TcMessage)
NewNsId(NsidMessage)
DelNsId(NsidMessage)
GetNsId(NsidMessage)
NewRule(RuleMessage)
DelRule(RuleMessage)
GetRule(RuleMessage)
Implementations§
source§impl RtnlMessage
impl RtnlMessage
pub fn is_new_link(&self) -> bool
pub fn is_del_link(&self) -> bool
pub fn is_get_link(&self) -> bool
pub fn is_set_link(&self) -> bool
pub fn is_new_address(&self) -> bool
pub fn is_del_address(&self) -> bool
pub fn is_get_address(&self) -> bool
pub fn is_get_neighbour(&self) -> bool
pub fn is_new_route(&self) -> bool
pub fn is_new_neighbour(&self) -> bool
pub fn is_get_route(&self) -> bool
pub fn is_del_neighbour(&self) -> bool
pub fn is_new_neighbour_table(&self) -> bool
pub fn is_get_neighbour_table(&self) -> bool
pub fn is_set_neighbour_table(&self) -> bool
pub fn is_del_route(&self) -> bool
pub fn is_new_qdisc(&self) -> bool
pub fn is_del_qdisc(&self) -> bool
pub fn is_get_qdisc(&self) -> bool
pub fn is_new_class(&self) -> bool
pub fn is_del_class(&self) -> bool
pub fn is_get_class(&self) -> bool
pub fn is_new_filter(&self) -> bool
pub fn is_del_filter(&self) -> bool
pub fn is_get_filter(&self) -> bool
pub fn is_new_chain(&self) -> bool
pub fn is_del_chain(&self) -> bool
pub fn is_get_chain(&self) -> bool
pub fn is_new_nsid(&self) -> bool
pub fn is_get_nsid(&self) -> bool
pub fn is_del_nsid(&self) -> bool
pub fn is_get_rule(&self) -> bool
pub fn is_new_rule(&self) -> bool
pub fn is_del_rule(&self) -> bool
pub fn message_type(&self) -> u16
Trait Implementations§
source§impl Clone for RtnlMessage
impl Clone for RtnlMessage
source§fn clone(&self) -> RtnlMessage
fn clone(&self) -> RtnlMessage
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 RtnlMessage
impl Debug for RtnlMessage
source§impl Emitable for RtnlMessage
impl Emitable for RtnlMessage
source§impl From<RtnlMessage> for NetlinkPayload<RtnlMessage>
impl From<RtnlMessage> for NetlinkPayload<RtnlMessage>
source§fn from(message: RtnlMessage) -> Self
fn from(message: RtnlMessage) -> Self
Converts to this type from the input type.
source§impl NetlinkDeserializable for RtnlMessage
impl NetlinkDeserializable for RtnlMessage
type Error = DecodeError
source§fn deserialize(
header: &NetlinkHeader,
payload: &[u8]
) -> Result<Self, Self::Error>
fn deserialize( header: &NetlinkHeader, payload: &[u8] ) -> Result<Self, Self::Error>
Deserialize the given buffer into
Self
.source§impl NetlinkSerializable for RtnlMessage
impl NetlinkSerializable for RtnlMessage
fn message_type(&self) -> u16
source§fn buffer_len(&self) -> usize
fn buffer_len(&self) -> usize
Return the length of the serialized data. Read more
source§fn serialize(&self, buffer: &mut [u8])
fn serialize(&self, buffer: &mut [u8])
Serialize this types and write the serialized data into the given
buffer.
buffer
’s length is exactly InnerMessage::buffer_len()
.
It means that if InnerMessage::buffer_len()
is buggy and does not
return the appropriate length, bad things can happen: Read moresource§impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<RtnlMessageBuffer<&'a T>, u16> for RtnlMessage
impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<RtnlMessageBuffer<&'a T>, u16> for RtnlMessage
source§fn parse_with_param(
buf: &RtnlMessageBuffer<&'a T>,
message_type: u16
) -> Result<Self, DecodeError>
fn parse_with_param( buf: &RtnlMessageBuffer<&'a T>, message_type: u16 ) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq<RtnlMessage> for RtnlMessage
impl PartialEq<RtnlMessage> for RtnlMessage
source§fn eq(&self, other: &RtnlMessage) -> bool
fn eq(&self, other: &RtnlMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RtnlMessage
impl StructuralEq for RtnlMessage
impl StructuralPartialEq for RtnlMessage
Auto Trait Implementations§
impl RefUnwindSafe for RtnlMessage
impl Send for RtnlMessage
impl Sync for RtnlMessage
impl Unpin for RtnlMessage
impl UnwindSafe for RtnlMessage
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