Skip to main content

Module storage

Module storage 

Source
Expand description

Compute Storage module.

Structs§

BytesReadGuard
Owned read guard. References obtained through Deref cannot outlive the guard.
BytesResource
A checked range of a CPU allocation. Clones share the allocation and its borrow registry, not independently mutable slices.
BytesStorage
The bytes storage maps IDs to reference-counted, initialized allocations. Removing an ID prevents new lookups; outstanding resources/guards keep the allocation alive until their last owner is dropped.
BytesWriteGuard
Owned exclusive range guard. Disjoint ranges can be borrowed independently, even when a memory pool places multiple resources in the same allocation.
ManagedResource
Access to the underlying resource.
StorageHandle
Contains the storage id of a resource and the way it is used.
StorageId
Storage ID.
StorageUtilization
Defines if data uses a full memory chunk or a slice of it.

Enums§

BytesAccessError
Invalid storage lookup or conflicting safe access.

Traits§

ComputeStorage
Storage types are responsible for allocating and deallocating memory.