pub struct Networks { /* private fields */ }
Expand description
Interface for Docker Networks.Network>
Implementations§
Source§impl Networks
impl Networks
Sourcepub async fn list(&self, opts: &NetworkListOpts) -> Result<Vec<Network>>
pub async fn list(&self, opts: &NetworkListOpts) -> Result<Vec<Network>>
List available Networks.
Sourcepub async fn prune(
&self,
opts: &NetworkPruneOpts,
) -> Result<NetworkPrune200Response>
pub async fn prune( &self, opts: &NetworkPruneOpts, ) -> Result<NetworkPrune200Response>
Delete stopped/unused Networks.
Sourcepub async fn create(&self, opts: &NetworkCreateOpts) -> Result<Network>
pub async fn create(&self, opts: &NetworkCreateOpts) -> Result<Network>
Create a new network.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Networks
impl !RefUnwindSafe for Networks
impl Send for Networks
impl Sync for Networks
impl Unpin for Networks
impl !UnwindSafe for Networks
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