pub struct Ram { /* private fields */ }Implementations§
Source§impl Ram
impl Ram
pub fn get_slice<T>( &self, gpa: u64, len: u64, ) -> Result<&[UnsafeCell<T>], Error>
pub fn get_ptr<T>(&self, gpa: u64) -> Result<*mut T, Error>
pub fn read(&self, gpa: u64, buf: &mut [u8]) -> Result<()>
pub fn read_t<T>(&self, gpa: u64) -> Result<T>
pub fn write(&self, gpa: u64, buf: &[u8]) -> Result<()>
pub fn write_t<T>(&self, gpa: u64, val: &T) -> Result<(), Error>
pub fn translate(&self, gpa: u64) -> Result<*const u8>
pub fn translate_iov<'a>( &'a self, iov: &[(u64, u64)], ) -> Result<Vec<IoSlice<'a>>>
pub fn translate_iov_mut<'a>( &'a self, iov: &[(u64, u64)], ) -> Result<Vec<IoSliceMut<'a>>>
pub fn iter(&self) -> impl DoubleEndedIterator<Item = (u64, &ArcMemPages)>
pub fn madvise(&self, gpa: u64, size: u64, advice: i32) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ram
impl RefUnwindSafe for Ram
impl Send for Ram
impl Sync for Ram
impl Unpin for Ram
impl UnsafeUnpin for Ram
impl UnwindSafe for Ram
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