Struct wildland_cargo_lib::api::storage::ContainerStorage
source · pub struct ContainerStorage { /* private fields */ }
Implementations§
source§impl ContainerStorage
impl ContainerStorage
pub fn from_corex_storage(corex_storage: Storage, dfs_api: DfsApi) -> Self
sourcepub fn get_space_usage(&self) -> Result<SpaceUsage, QuotaControlError>
pub fn get_space_usage(&self) -> Result<SpaceUsage, QuotaControlError>
Returns (used, total) space in bytes
sourcepub fn is_accessible(&self) -> Result<bool, CoreXError>
pub fn is_accessible(&self) -> Result<bool, CoreXError>
Checks whether the Storage is accessible
sourcepub fn template_uuid(&self) -> Option<Uuid>
pub fn template_uuid(&self) -> Option<Uuid>
template_uuid
attribute getter
sourcepub fn backend_type(&self) -> String
pub fn backend_type(&self) -> String
backend_type
attribute getter
Trait Implementations§
source§impl Clone for ContainerStorage
impl Clone for ContainerStorage
source§fn clone(&self) -> ContainerStorage
fn clone(&self) -> ContainerStorage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ContainerStorage
impl Send for ContainerStorage
impl Sync for ContainerStorage
impl Unpin for ContainerStorage
impl !UnwindSafe for ContainerStorage
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