#[non_exhaustive]pub enum RouteNetlinkMessage {
Show 38 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),
NewNeighbourDiscoveryUserOption(NeighbourDiscoveryUserOptionMessage),
NewRoute(RouteMessage),
DelRoute(RouteMessage),
GetRoute(RouteMessage),
NewPrefix(PrefixMessage),
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)
NewNeighbourDiscoveryUserOption(NeighbourDiscoveryUserOptionMessage)
NewRoute(RouteMessage)
DelRoute(RouteMessage)
GetRoute(RouteMessage)
NewPrefix(PrefixMessage)
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 = RouteNetlinkMessageParseError
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
type Error = RouteNetlinkMessageParseError
Source§fn parse_with_param(
buf: &RouteNetlinkMessageBuffer<&'a T>,
message_type: u16,
) -> Result<Self, Self::Error>
fn parse_with_param( buf: &RouteNetlinkMessageBuffer<&'a T>, message_type: u16, ) -> Result<Self, Self::Error>
Deserialize the current type.
Source§impl PartialEq for RouteNetlinkMessage
impl PartialEq for RouteNetlinkMessage
impl Eq for RouteNetlinkMessage
impl StructuralPartialEq for RouteNetlinkMessage
Auto Trait Implementations§
impl Freeze for RouteNetlinkMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)