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]
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]
&self,
opts: &NetworkListOptions
) -> Result<Vec<NetworkDetails>>
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]
S: Into<String>,
Returns a reference to a set of operations available to a specific network instance
pub async fn create(
&self,
opts: &NetworkCreateOptions
) -> Result<NetworkCreateInfo>
[src]
&self,
opts: &NetworkCreateOptions
) -> Result<NetworkCreateInfo>
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> Instrument for T
[src]
impl<T> Instrument for T
[src]