Struct docker_api::api::network::Networks
source · 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 !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