Struct burn_compute::storage::StorageHandle
source · 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 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