pub struct VmSlice<T> {
pub vm_addr: u64,
pub len: u64,
pub _phantom: PhantomData<T>,
}👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Atlas Unstable API. From v4.0.0 onward, the
atlas-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
VM memory slice - abstraction for safe memory access from VM
Fields§
§vm_addr: u64👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Atlas Unstable API. From v4.0.0 onward, the
§atlas-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.len: u64👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Atlas Unstable API. From v4.0.0 onward, the
§atlas-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning._phantom: PhantomData<T>👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Atlas Unstable API. From v4.0.0 onward, the
atlas-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Implementations§
Source§impl<T> VmSlice<T>
impl<T> VmSlice<T>
pub fn new(vm_addr: u64, len: u64) -> Self
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Atlas Unstable API. From v4.0.0 onward, the
atlas-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pub fn ptr(&self) -> u64
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Atlas Unstable API. From v4.0.0 onward, the
atlas-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pub fn len(&self) -> u64
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Atlas Unstable API. From v4.0.0 onward, the
atlas-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pub fn is_empty(&self) -> bool
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Atlas Unstable API. From v4.0.0 onward, the
atlas-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Trait Implementations§
impl<T: Copy> Copy for VmSlice<T>
Auto Trait Implementations§
impl<T> Freeze for VmSlice<T>
impl<T> RefUnwindSafe for VmSlice<T>where
T: RefUnwindSafe,
impl<T> Send for VmSlice<T>where
T: Send,
impl<T> Sync for VmSlice<T>where
T: Sync,
impl<T> Unpin for VmSlice<T>where
T: Unpin,
impl<T> UnwindSafe for VmSlice<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more