[][src]Struct shiplift::Network

pub struct Network<'a, 'b> { /* fields omitted */ }

Interface for accessing and manipulating a docker network

Methods

impl<'a, 'b> Network<'a, 'b>[src]

pub fn new<S>(docker: &'a Docker, id: S) -> Network<'a, 'b> where
    S: Into<Cow<'b, str>>, 
[src]

Exports an interface exposing operations against a network instance

pub fn id(&self) -> &str[src]

a getter for the Network id

pub fn inspect(&self) -> impl Future<Item = NetworkInfo, Error = Error>[src]

Inspects the current docker network instance's details

pub fn delete(&self) -> impl Future<Item = (), Error = Error>[src]

Delete the network instance

pub fn connect(
    &self,
    opts: &ContainerConnectionOptions
) -> impl Future<Item = (), Error = Error>
[src]

Connect container to network

pub fn disconnect(
    &self,
    opts: &ContainerConnectionOptions
) -> impl Future<Item = (), Error = Error>
[src]

Disconnect container to network

Auto Trait Implementations

impl<'a, 'b> Send for Network<'a, 'b>

impl<'a, 'b> Sync for Network<'a, 'b>

Blanket Implementations

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

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

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.

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

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

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

impl<T> Erased for T