pub struct StorageHandle {
pub id: StorageId,
pub utilization: StorageUtilization,
}Expand description
Contains the storage id of a resource and the way it is used.
Fields§
§id: StorageIdStorage id.
utilization: StorageUtilizationHow the storage is used.
Implementations§
Source§impl StorageHandle
impl StorageHandle
Sourcepub fn new(id: StorageId, utilization: StorageUtilization) -> Self
pub fn new(id: StorageId, utilization: StorageUtilization) -> Self
Constructs a new StorageHandle.
Auto Trait Implementations§
impl Freeze for StorageHandle
impl RefUnwindSafe for StorageHandle
impl Send for StorageHandle
impl Sync for StorageHandle
impl Unpin for StorageHandle
impl UnwindSafe for StorageHandle
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