Struct shiplift::network::Network[][src]

pub struct Network<'docker> { /* fields omitted */ }

Interface for accessing and manipulating a docker network

Implementations

impl<'docker> Network<'docker>[src]

pub fn new<S>(docker: &'docker Docker, id: S) -> Self where
    S: Into<String>, 
[src]

Exports an interface exposing operations against a network instance

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

a getter for the Network id

pub async fn inspect(&self) -> Result<NetworkDetails>[src]

Inspects the current docker network instance’s details

API Reference: https://docs.docker.com/engine/api/v1.41/#operation/NetworkInspect

pub async fn delete(&self) -> Result<()>[src]

Delete the network instance

API Reference: https://docs.docker.com/engine/api/v1.41/#operation/NetworkDelete

pub async fn connect(&self, opts: &ContainerConnectionOptions) -> Result<()>[src]

Connect container to network

API Reference: https://docs.docker.com/engine/api/v1.41/#operation/NetworkConnect

pub async fn disconnect(&self, opts: &ContainerConnectionOptions) -> Result<()>[src]

Disconnect container to network

API Reference: https://docs.docker.com/engine/api/v1.41/#operation/NetworkDisconnect

Auto Trait Implementations

impl<'docker> !RefUnwindSafe for Network<'docker>

impl<'docker> Send for Network<'docker>

impl<'docker> Sync for Network<'docker>

impl<'docker> Unpin for Network<'docker>

impl<'docker> !UnwindSafe for Network<'docker>

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