pub struct VolumeManager<'a> { /* private fields */ }Expand description
Volume manager for volume operations
Implementations§
Source§impl<'a> VolumeManager<'a>
impl<'a> VolumeManager<'a>
Sourcepub async fn get_by_name(&self, name: &str) -> Result<VolumeDto>
pub async fn get_by_name(&self, name: &str) -> Result<VolumeDto>
Get volume details by name
Sourcepub async fn wait_for_state(
&self,
volume_id: &Uuid,
target_state: VolumeState,
max_wait_seconds: u64,
) -> Result<VolumeDto>
pub async fn wait_for_state( &self, volume_id: &Uuid, target_state: VolumeState, max_wait_seconds: u64, ) -> Result<VolumeDto>
Wait for volume to reach a specific state
Auto Trait Implementations§
impl<'a> Freeze for VolumeManager<'a>
impl<'a> !RefUnwindSafe for VolumeManager<'a>
impl<'a> Send for VolumeManager<'a>
impl<'a> Sync for VolumeManager<'a>
impl<'a> Unpin for VolumeManager<'a>
impl<'a> !UnwindSafe for VolumeManager<'a>
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