pub struct VethEndpoint {
pub name: String,
pub peer_name: String,
pub mac: [u8; 6],
pub ipv4_addr: u32,
pub ipv4_mask: u32,
pub mtu: u16,
pub is_up: bool,
pub namespace_id: u64,
}Expand description
Virtual Ethernet interface state.
Fields§
§name: StringInterface name.
peer_name: StringPeer interface name.
mac: [u8; 6]MAC address (6 bytes).
ipv4_addr: u32IPv4 address (network byte order).
ipv4_mask: u32IPv4 subnet mask (network byte order).
mtu: u16MTU in bytes (default 1500).
is_up: boolWhether the interface is up.
namespace_id: u64Namespace ID this endpoint belongs to (0 = host).
Trait Implementations§
Source§impl Clone for VethEndpoint
impl Clone for VethEndpoint
Source§fn clone(&self) -> VethEndpoint
fn clone(&self) -> VethEndpoint
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 VethEndpoint
impl Debug for VethEndpoint
Source§impl PartialEq for VethEndpoint
impl PartialEq for VethEndpoint
impl Eq for VethEndpoint
impl StructuralPartialEq for VethEndpoint
Auto Trait Implementations§
impl Freeze for VethEndpoint
impl RefUnwindSafe for VethEndpoint
impl Send for VethEndpoint
impl Sync for VethEndpoint
impl Unpin for VethEndpoint
impl UnwindSafe for VethEndpoint
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)