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]
impl<'docker> Network<'docker>
[src]pub fn new<S>(docker: &'docker Docker, id: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
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> Instrument for T
[src]
impl<T> Instrument for T
[src]