pub struct SystemStorage { /* private fields */ }Expand description
System memory allocated via malloc.
Implementations§
Source§impl SystemStorage
impl SystemStorage
Sourcepub unsafe fn as_ptr(&self) -> *const u8
pub unsafe fn as_ptr(&self) -> *const u8
Get a pointer to the underlying memory.
§Safety
The caller must ensure the pointer is not used after this storage is dropped.
Sourcepub unsafe fn as_mut_ptr(&mut self) -> *mut u8
pub unsafe fn as_mut_ptr(&mut self) -> *mut u8
Get a mutable pointer to the underlying memory.
§Safety
The caller must ensure the pointer is not used after this storage is dropped and that there are no other references to this memory.
Trait Implementations§
Source§impl Debug for SystemStorage
impl Debug for SystemStorage
Source§impl Drop for SystemStorage
impl Drop for SystemStorage
Source§impl MemoryDescription for SystemStorage
impl MemoryDescription for SystemStorage
Source§fn storage_kind(&self) -> StorageKind
fn storage_kind(&self) -> StorageKind
Type of storage backing this region.
Source§fn nixl_descriptor(&self) -> Option<NixlDescriptor>
fn nixl_descriptor(&self) -> Option<NixlDescriptor>
Get the NIXL descriptor for this memory region.
Source§impl Memset for SystemStorage
impl Memset for SystemStorage
Source§impl NixlCompatible for SystemStorage
impl NixlCompatible for SystemStorage
Source§impl Slice for SystemStorage
impl Slice for SystemStorage
Source§unsafe fn as_slice(&self) -> Result<&[u8]>
unsafe fn as_slice(&self) -> Result<&[u8]>
Returns an immutable byte slice view of the entire storage region Read more
Source§fn slice(&self, offset: usize, len: usize) -> Result<&[u8], StorageError>
fn slice(&self, offset: usize, len: usize) -> Result<&[u8], StorageError>
Returns an immutable byte slice view of a subregion Read more
Source§fn as_slice_typed<T: Sized>(&self) -> Result<&[T], StorageError>
fn as_slice_typed<T: Sized>(&self) -> Result<&[T], StorageError>
Returns a typed immutable slice view of the entire storage region Read more
Source§fn slice_typed<T: Sized>(
&self,
offset: usize,
len: usize,
) -> Result<&[T], StorageError>
fn slice_typed<T: Sized>( &self, offset: usize, len: usize, ) -> Result<&[T], StorageError>
Returns a typed immutable slice view of a subregion Read more
impl Send for SystemStorage
impl Sync for SystemStorage
Auto Trait Implementations§
impl Freeze for SystemStorage
impl RefUnwindSafe for SystemStorage
impl Unpin for SystemStorage
impl UnwindSafe for SystemStorage
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