pub struct StorageManager { /* private fields */ }Implementations§
Source§impl StorageManager
impl StorageManager
pub fn new() -> StorageResult<Self>
pub async fn ensure_directories(&self) -> StorageResult<()>
pub fn containers_path(&self) -> StorageResult<PathBuf>
pub fn container_path(&self, container_id: &str) -> StorageResult<PathBuf>
pub fn images_path(&self) -> StorageResult<PathBuf>
pub fn image_path(&self, image_id: &str) -> StorageResult<PathBuf>
pub fn volumes_path(&self) -> StorageResult<PathBuf>
pub fn volume_path(&self, volume_id: &str) -> StorageResult<PathBuf>
pub fn tmp_path(&self) -> StorageResult<PathBuf>
pub fn get_base_path() -> StorageResult<PathBuf>
pub async fn create_file( &self, path: &Path, content: &[u8], ) -> StorageResult<()>
pub async fn read_file(&self, path: &Path) -> StorageResult<Vec<u8>>
pub async fn remove_file(&self, path: &Path) -> StorageResult<()>
pub async fn remove_directory(&self, path: &Path) -> StorageResult<()>
Auto Trait Implementations§
impl Freeze for StorageManager
impl RefUnwindSafe for StorageManager
impl Send for StorageManager
impl Sync for StorageManager
impl Unpin for StorageManager
impl UnsafeUnpin for StorageManager
impl UnwindSafe for StorageManager
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