pub struct VmoStorage { /* private fields */ }Expand description
Userspace-only storage backed by a VMO (Virtual Memory Object).
Implementations§
Trait Implementations§
Source§impl Debug for VmoStorage
impl Debug for VmoStorage
Source§impl Default for VmoStorage
impl Default for VmoStorage
Source§fn default() -> VmoStorage
fn default() -> VmoStorage
Returns the “default value” for a type. Read more
Source§impl Drop for VmoStorage
impl Drop for VmoStorage
Source§impl Storage for VmoStorage
impl Storage for VmoStorage
Source§const SUPPORTS_GROW: bool = true
const SUPPORTS_GROW: bool = true
True if this storage supports growing.
Source§fn allocate(&mut self, size: usize) -> Result<(), Status>
fn allocate(&mut self, size: usize) -> Result<(), Status>
Allocates at least
size bytes of storage.Source§fn get_data(&self) -> &[usize]
fn get_data(&self) -> &[usize]
Returns a read-only slice of
usize words to the underlying storage.Source§fn get_data_mut(&mut self) -> &mut [usize]
fn get_data_mut(&mut self) -> &mut [usize]
Returns a mutable slice of
usize words to the underlying storage.Auto Trait Implementations§
impl Freeze for VmoStorage
impl RefUnwindSafe for VmoStorage
impl Send for VmoStorage
impl Sync for VmoStorage
impl Unpin for VmoStorage
impl UnsafeUnpin for VmoStorage
impl UnwindSafe for VmoStorage
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more