pub struct StorageResourceManager { /* private fields */ }Expand description
Storage resource manager
Implementations§
Source§impl StorageResourceManager
impl StorageResourceManager
Sourcepub fn allocate_storage(
&mut self,
size: u64,
storage_type: StorageType,
) -> SklResult<StorageAllocation>
pub fn allocate_storage( &mut self, size: u64, storage_type: StorageType, ) -> SklResult<StorageAllocation>
Allocate storage resources
Sourcepub fn release_storage(
&mut self,
allocation: &StorageAllocation,
) -> SklResult<()>
pub fn release_storage( &mut self, allocation: &StorageAllocation, ) -> SklResult<()>
Release storage allocation
Trait Implementations§
Source§impl Debug for StorageResourceManager
impl Debug for StorageResourceManager
Auto Trait Implementations§
impl Freeze for StorageResourceManager
impl RefUnwindSafe for StorageResourceManager
impl Send for StorageResourceManager
impl Sync for StorageResourceManager
impl Unpin for StorageResourceManager
impl UnwindSafe for StorageResourceManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more