#[non_exhaustive]pub enum RouteNetlinkMessage {
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 RouteNetlinkMessage
impl RouteNetlinkMessage
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 RouteNetlinkMessage
impl Clone for RouteNetlinkMessage
source§fn clone(&self) -> RouteNetlinkMessage
fn clone(&self) -> RouteNetlinkMessage
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 RouteNetlinkMessage
impl Debug for RouteNetlinkMessage
source§impl Emitable for RouteNetlinkMessage
impl Emitable for RouteNetlinkMessage
source§impl From<RouteNetlinkMessage> for NetlinkPayload<RouteNetlinkMessage>
impl From<RouteNetlinkMessage> for NetlinkPayload<RouteNetlinkMessage>
source§fn from(message: RouteNetlinkMessage) -> Self
fn from(message: RouteNetlinkMessage) -> Self
Converts to this type from the input type.
source§impl NetlinkDeserializable for RouteNetlinkMessage
impl NetlinkDeserializable for RouteNetlinkMessage
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 RouteNetlinkMessage
impl NetlinkSerializable for RouteNetlinkMessage
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<RouteNetlinkMessageBuffer<&'a T>, u16> for RouteNetlinkMessage
impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<RouteNetlinkMessageBuffer<&'a T>, u16> for RouteNetlinkMessage
source§fn parse_with_param(
buf: &RouteNetlinkMessageBuffer<&'a T>,
message_type: u16
) -> Result<Self, DecodeError>
fn parse_with_param( buf: &RouteNetlinkMessageBuffer<&'a T>, message_type: u16 ) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for RouteNetlinkMessage
impl PartialEq for RouteNetlinkMessage
source§fn eq(&self, other: &RouteNetlinkMessage) -> bool
fn eq(&self, other: &RouteNetlinkMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RouteNetlinkMessage
impl StructuralEq for RouteNetlinkMessage
impl StructuralPartialEq for RouteNetlinkMessage
Auto Trait Implementations§
impl RefUnwindSafe for RouteNetlinkMessage
impl Send for RouteNetlinkMessage
impl Sync for RouteNetlinkMessage
impl Unpin for RouteNetlinkMessage
impl UnwindSafe for RouteNetlinkMessage
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