Enum netlink_packet_route::rtnl::RtnlMessage [−][src]
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
NewLink(LinkMessage)Tuple Fields of NewLink
0: LinkMessageDelLink(LinkMessage)Tuple Fields of DelLink
0: LinkMessageGetLink(LinkMessage)Tuple Fields of GetLink
0: LinkMessageSetLink(LinkMessage)Tuple Fields of SetLink
0: LinkMessageNewLinkProp(LinkMessage)Tuple Fields of NewLinkProp
0: LinkMessageDelLinkProp(LinkMessage)Tuple Fields of DelLinkProp
0: LinkMessageNewAddress(AddressMessage)Tuple Fields of NewAddress
DelAddress(AddressMessage)Tuple Fields of DelAddress
GetAddress(AddressMessage)Tuple Fields of GetAddress
NewNeighbour(NeighbourMessage)Tuple Fields of NewNeighbour
GetNeighbour(NeighbourMessage)Tuple Fields of GetNeighbour
DelNeighbour(NeighbourMessage)Tuple Fields of DelNeighbour
NewNeighbourTable(NeighbourTableMessage)Tuple Fields of NewNeighbourTable
GetNeighbourTable(NeighbourTableMessage)Tuple Fields of GetNeighbourTable
SetNeighbourTable(NeighbourTableMessage)Tuple Fields of SetNeighbourTable
NewRoute(RouteMessage)Tuple Fields of NewRoute
0: RouteMessageDelRoute(RouteMessage)Tuple Fields of DelRoute
0: RouteMessageGetRoute(RouteMessage)Tuple Fields of GetRoute
0: RouteMessageNewQueueDiscipline(TcMessage)Tuple Fields of NewQueueDiscipline
0: TcMessageDelQueueDiscipline(TcMessage)Tuple Fields of DelQueueDiscipline
0: TcMessageGetQueueDiscipline(TcMessage)Tuple Fields of GetQueueDiscipline
0: TcMessageNewTrafficClass(TcMessage)Tuple Fields of NewTrafficClass
0: TcMessageDelTrafficClass(TcMessage)Tuple Fields of DelTrafficClass
0: TcMessageGetTrafficClass(TcMessage)Tuple Fields of GetTrafficClass
0: TcMessageNewTrafficFilter(TcMessage)Tuple Fields of NewTrafficFilter
0: TcMessageDelTrafficFilter(TcMessage)Tuple Fields of DelTrafficFilter
0: TcMessageGetTrafficFilter(TcMessage)Tuple Fields of GetTrafficFilter
0: TcMessageNewTrafficChain(TcMessage)Tuple Fields of NewTrafficChain
0: TcMessageDelTrafficChain(TcMessage)Tuple Fields of DelTrafficChain
0: TcMessageGetTrafficChain(TcMessage)Tuple Fields of GetTrafficChain
0: TcMessageNewNsId(NsidMessage)Tuple Fields of NewNsId
0: NsidMessageDelNsId(NsidMessage)Tuple Fields of DelNsId
0: NsidMessageGetNsId(NsidMessage)Tuple Fields of GetNsId
0: NsidMessageNewRule(RuleMessage)Tuple Fields of NewRule
0: RuleMessageDelRule(RuleMessage)Tuple Fields of DelRule
0: RuleMessageGetRule(RuleMessage)Tuple Fields of GetRule
0: RuleMessageImplementations
Trait Implementations
Performs the conversion.
type Error = DecodeError
Deserialize the given buffer into T.
Return the length of the serialized data. Read more
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 more
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
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.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. Read more