Enum netlink_packet_route::rtnl::RtnlMessage
source · [−]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)
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
sourceimpl 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
sourceimpl Clone for RtnlMessage
impl Clone for RtnlMessage
sourcefn clone(&self) -> RtnlMessage
fn clone(&self) -> RtnlMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RtnlMessage
impl Debug for RtnlMessage
sourceimpl Emitable for RtnlMessage
impl Emitable for RtnlMessage
sourceimpl From<RtnlMessage> for NetlinkPayload<RtnlMessage>
impl From<RtnlMessage> for NetlinkPayload<RtnlMessage>
sourcefn from(message: RtnlMessage) -> Self
fn from(message: RtnlMessage) -> Self
Converts to this type from the input type.
sourceimpl NetlinkDeserializable for RtnlMessage
impl NetlinkDeserializable for RtnlMessage
type Error = DecodeError
sourcefn 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
.
sourceimpl NetlinkSerializable for RtnlMessage
impl NetlinkSerializable for RtnlMessage
fn message_type(&self) -> u16
sourcefn buffer_len(&self) -> usize
fn buffer_len(&self) -> usize
Return the length of the serialized data. Read more
sourcefn 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 more
sourceimpl<'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
sourcefn 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.
sourceimpl PartialEq<RtnlMessage> for RtnlMessage
impl PartialEq<RtnlMessage> for RtnlMessage
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &RtnlMessage) -> bool
fn ne(&self, other: &RtnlMessage) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more