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