Struct docker_api::api::container::Containers
source · pub struct Containers { /* private fields */ }
Expand description
Interface for Docker Containers.Container>
Implementations§
source§impl Containers
impl Containers
source§impl Containers
impl Containers
sourcepub async fn list(
&self,
opts: &ContainerListOpts
) -> Result<Vec<ContainerSummary>>
pub async fn list( &self, opts: &ContainerListOpts ) -> Result<Vec<ContainerSummary>>
List available Containers.
sourcepub async fn prune(
&self,
opts: &ContainerPruneOpts
) -> Result<ContainerPrune200Response>
pub async fn prune( &self, opts: &ContainerPruneOpts ) -> Result<ContainerPrune200Response>
Delete stopped/unused Containers.
sourcepub async fn create(&self, opts: &ContainerCreateOpts) -> Result<Container>
pub async fn create(&self, opts: &ContainerCreateOpts) -> Result<Container>
Create a container
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Containers
impl Send for Containers
impl Sync for Containers
impl Unpin for Containers
impl !UnwindSafe for Containers
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