pub struct NetNamespace {
pub inode: u64,
pub name: Option<String>,
}Expand description
A network namespace with its inode and optional human-readable name.
Fields§
§inode: u64The namespace inode number (unique identifier).
name: Option<String>Human-readable name from /run/netns/, if available.
Implementations§
Trait Implementations§
Source§impl Clone for NetNamespace
impl Clone for NetNamespace
Source§fn clone(&self) -> NetNamespace
fn clone(&self) -> NetNamespace
Returns a duplicate 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 NetNamespace
impl Debug for NetNamespace
Source§impl PartialEq for NetNamespace
impl PartialEq for NetNamespace
impl Eq for NetNamespace
impl StructuralPartialEq for NetNamespace
Auto Trait Implementations§
impl Freeze for NetNamespace
impl RefUnwindSafe for NetNamespace
impl Send for NetNamespace
impl Sync for NetNamespace
impl Unpin for NetNamespace
impl UnsafeUnpin for NetNamespace
impl UnwindSafe for NetNamespace
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.