pub struct BytesStorage { /* private fields */ }Expand description
The bytes storage maps ids to pointers of bytes in a contiguous layout.
Trait Implementations§
Source§impl ComputeStorage for BytesStorage
 
impl ComputeStorage for BytesStorage
Source§type Resource = BytesResource
 
type Resource = BytesResource
The resource associated type determines the way data is implemented and how
it can be accessed by kernels.
Source§fn get(&mut self, handle: &StorageHandle) -> Self::Resource
 
fn get(&mut self, handle: &StorageHandle) -> Self::Resource
Returns the underlying resource for a specified storage handle
Source§fn alloc(&mut self, size: u64) -> Result<StorageHandle, IoError>
 
fn alloc(&mut self, size: u64) -> Result<StorageHandle, IoError>
Allocates 
size units of memory and returns a handle to itSource§impl Debug for BytesStorage
 
impl Debug for BytesStorage
Source§impl Default for BytesStorage
 
impl Default for BytesStorage
Source§fn default() -> BytesStorage
 
fn default() -> BytesStorage
Returns the “default value” for a type. Read more
impl Send for BytesStorage
Can send to other threads.
Auto Trait Implementations§
impl Freeze for BytesStorage
impl RefUnwindSafe for BytesStorage
impl !Sync for BytesStorage
impl Unpin for BytesStorage
impl UnwindSafe for BytesStorage
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