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 Freeze for Network
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