Struct shiplift::network::Networks[][src]

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

Interface for docker network

API Reference: https://docs.docker.com/engine/api/v1.41/#tag/Network

Implementations

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

pub fn new(docker: &'docker Docker) -> Self[src]

Exports an interface for interacting with docker Networks

pub async fn list(
    &self,
    opts: &NetworkListOptions
) -> Result<Vec<NetworkDetails>>
[src]

List the docker networks on the current docker host

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

pub fn get<S>(&self, id: S) -> Network<'docker> where
    S: Into<String>, 
[src]

Returns a reference to a set of operations available to a specific network instance

pub async fn create(
    &self,
    opts: &NetworkCreateOptions
) -> Result<NetworkCreateInfo>
[src]

Create a new Network instance

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

Auto Trait Implementations

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

impl<'docker> Send for Networks<'docker>

impl<'docker> Sync for Networks<'docker>

impl<'docker> Unpin for Networks<'docker>

impl<'docker> !UnwindSafe for Networks<'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.