Struct cni_plugin::reply::Interface[][src]

pub struct Interface {
    pub name: String,
    pub mac: Option<MacAddr6>,
    pub sandbox: PathBuf,
}

Interface structure for success reply types.

Fields

name: String

The name of the interface.

mac: Option<MacAddr6>

The hardware address of the interface (if applicable).

sandbox: PathBuf

The path to the namespace the interface is in.

This should be the value passed by CNI_NETNS.

If the interface is on the host, this should be set to an empty string.

Trait Implementations

impl Clone for Interface[src]

impl Debug for Interface[src]

impl<'de> Deserialize<'de> for Interface[src]

impl Serialize for Interface[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.