pub struct VolumeManager { /* private fields */ }Expand description
Volume manager
Implementations§
Source§impl VolumeManager
impl VolumeManager
pub fn new(volume_root: impl AsRef<Path>) -> VolumeManager
pub fn add_mount(&mut self, mount: VolumeMount) -> Result<(), SandboxError>
pub fn mounts(&self) -> &[VolumeMount]
pub fn create_volume(&self, name: &str) -> Result<PathBuf, SandboxError>
pub fn delete_volume(&self, name: &str) -> Result<(), SandboxError>
pub fn list_volumes(&self) -> Result<Vec<String>, SandboxError>
pub fn get_volume_size(&self, name: &str) -> Result<u64, SandboxError>
pub fn clear_mounts(&mut self)
Auto Trait Implementations§
impl Freeze for VolumeManager
impl RefUnwindSafe for VolumeManager
impl Send for VolumeManager
impl Sync for VolumeManager
impl Unpin for VolumeManager
impl UnsafeUnpin for VolumeManager
impl UnwindSafe for VolumeManager
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