pub struct CniInterface {
pub name: String,
pub mac: String,
pub sandbox: bool,
}Expand description
A network interface in the CNI result.
Fields§
§name: StringInterface name (e.g., “eth0”).
mac: StringMAC address (e.g., “02:42:ac:11:00:02”).
sandbox: boolWhether this is inside the container sandbox.
Trait Implementations§
Source§impl Clone for CniInterface
impl Clone for CniInterface
Source§fn clone(&self) -> CniInterface
fn clone(&self) -> CniInterface
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 moreAuto Trait Implementations§
impl Freeze for CniInterface
impl RefUnwindSafe for CniInterface
impl Send for CniInterface
impl Sync for CniInterface
impl Unpin for CniInterface
impl UnwindSafe for CniInterface
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)