#[repr(u16)]pub enum NetlinkMessageType {
Show 19 variants
Noop = 0,
Error = 1,
Done = 2,
LinkUp = 16,
LinkDown = 17,
GetLink = 18,
NewLink = 19,
DelLink = 20,
AddrAdd = 32,
AddrDel = 33,
GetAddr = 34,
NewAddr = 35,
RouteAdd = 48,
RouteDel = 49,
GetRoute = 50,
NewRoute = 51,
GetLinks = 64,
GetAddrs = 65,
GetRoutes = 66,
}Expand description
Netlink message type codes
Variants§
Noop = 0
No-op / padding
Error = 1
Error response
Done = 2
Acknowledgement
LinkUp = 16
Bring a network interface up
LinkDown = 17
Bring a network interface down
GetLink = 18
Query link state for an interface
NewLink = 19
Response: link information
DelLink = 20
Delete a link (not commonly used)
AddrAdd = 32
Add an IPv4/IPv6 address to an interface
AddrDel = 33
Remove an address from an interface
GetAddr = 34
Query addresses on an interface
NewAddr = 35
Response: address information
RouteAdd = 48
Add a route
RouteDel = 49
Delete a route
GetRoute = 50
Query routes
NewRoute = 51
Response: route information
GetLinks = 64
Enumerate all network interfaces
GetAddrs = 65
Enumerate all addresses
GetRoutes = 66
Enumerate all routes
Implementations§
Trait Implementations§
Source§impl Clone for NetlinkMessageType
impl Clone for NetlinkMessageType
Source§fn clone(&self) -> NetlinkMessageType
fn clone(&self) -> NetlinkMessageType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetlinkMessageType
impl Debug for NetlinkMessageType
Source§impl PartialEq for NetlinkMessageType
impl PartialEq for NetlinkMessageType
impl Copy for NetlinkMessageType
impl Eq for NetlinkMessageType
impl StructuralPartialEq for NetlinkMessageType
Auto Trait Implementations§
impl Freeze for NetlinkMessageType
impl RefUnwindSafe for NetlinkMessageType
impl Send for NetlinkMessageType
impl Sync for NetlinkMessageType
impl Unpin for NetlinkMessageType
impl UnwindSafe for NetlinkMessageType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)