Struct docker_api::api::network::Network
source · pub struct Network { /* private fields */ }
Expand description
Interface for accessing and manipulating Docker Network.
Implementations§
source§impl Network
impl Network
sourcepub async fn connect(&self, opts: &ContainerConnectionOpts) -> Result<()>
pub async fn connect(&self, opts: &ContainerConnectionOpts) -> Result<()>
Connect a container to a network.
sourcepub async fn disconnect(&self, opts: &ContainerDisconnectionOpts) -> Result<()>
pub async fn disconnect(&self, opts: &ContainerDisconnectionOpts) -> Result<()>
Disconnect a container from a network.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl !UnwindSafe for Network
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more