Enum cni_plugin::Command[][src]

pub enum Command {
    Add,
    Del,
    Check,
    Version,
}

Identifies the command given to a plugin.

For more information about the command semantics, see the spec or the Cni enum documentation.

Variants

Add

The ADD command.

Del

The DEL command.

Check

The CHECK command.

Introduced in spec version 1.0.0.

Version

The VERSION command.

Trait Implementations

impl AsRef<str> for Command[src]

fn as_ref(&self) -> &'static str[src]

Returns one of ADD, DEL, CHECK, or VERSION.

impl Clone for Command[src]

impl Copy for Command[src]

impl Debug for Command[src]

impl FromStr for Command[src]

type Err = InvalidCommandError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Parses the Command from exactly ADD, DEL, CHECK, or VERSION only.

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

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> 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.