Struct cni_plugin::config::PortMapping[][src]

pub struct PortMapping {
    pub host_port: u16,
    pub container_port: u16,
    pub protocol: Option<PortProtocol>,
}

Port mapping entry.

This defines a single mapping (forwarding) of a port from the host to the container namespace.

It is up to the implementation what to do if the protocol is left None.

Fields

host_port: u16

Port on the host.

container_port: u16

Port in the namespace.

protocol: Option<PortProtocol>

Protocol to forward.

Trait Implementations

impl Clone for PortMapping[src]

impl Debug for PortMapping[src]

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

impl Serialize for PortMapping[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.