pub struct Volumes { /* private fields */ }
Expand description
Interface for Docker Volumes.Volume>
Implementations§
Source§impl Volumes
impl Volumes
Sourcepub async fn prune(
&self,
opts: &VolumePruneOpts,
) -> Result<VolumePrune200Response>
pub async fn prune( &self, opts: &VolumePruneOpts, ) -> Result<VolumePrune200Response>
Delete stopped/unused Volumes.
Sourcepub async fn list(&self, opts: &VolumeListOpts) -> Result<VolumeListResponse>
pub async fn list(&self, opts: &VolumeListOpts) -> Result<VolumeListResponse>
List available volumes
Sourcepub async fn create(&self, opts: &VolumeCreateOpts) -> Result<Volume>
pub async fn create(&self, opts: &VolumeCreateOpts) -> Result<Volume>
Create a new volume.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Volumes
impl !RefUnwindSafe for Volumes
impl Send for Volumes
impl Sync for Volumes
impl Unpin for Volumes
impl !UnwindSafe for Volumes
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