pub struct HostGuestMemoryRegion {}Expand description
Type for memory regions that track both host and guest addresses.
When one of these is created, it always ends up in a sandbox quickly. It’s an invariant of this type that as long as one of these is associated with a sandbox, it’s always acceptable to read from it, since a lot of the debug/crashdump/snapshot code does. (Note: this means that writable HostGuestMemoryRegions are not possible to support at the moment).
Trait Implementations§
Source§impl Clone for HostGuestMemoryRegion
impl Clone for HostGuestMemoryRegion
Source§fn clone(&self) -> HostGuestMemoryRegion
fn clone(&self) -> HostGuestMemoryRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostGuestMemoryRegion
impl Debug for HostGuestMemoryRegion
Source§impl Hash for HostGuestMemoryRegion
impl Hash for HostGuestMemoryRegion
Source§impl MemoryRegionKind for HostGuestMemoryRegion
Available on non-Windows only.
impl MemoryRegionKind for HostGuestMemoryRegion
Available on non-Windows only.
Source§type HostBaseType = usize
type HostBaseType = usize
The type used to represent host memory addresses.
Source§fn add(base: Self::HostBaseType, size: usize) -> Self::HostBaseType
fn add(base: Self::HostBaseType, size: usize) -> Self::HostBaseType
Computes an address by adding a size to a base address. Read more
Source§impl PartialEq for HostGuestMemoryRegion
impl PartialEq for HostGuestMemoryRegion
impl Copy for HostGuestMemoryRegion
impl Eq for HostGuestMemoryRegion
impl StructuralPartialEq for HostGuestMemoryRegion
Auto Trait Implementations§
impl Freeze for HostGuestMemoryRegion
impl RefUnwindSafe for HostGuestMemoryRegion
impl Send for HostGuestMemoryRegion
impl Sync for HostGuestMemoryRegion
impl Unpin for HostGuestMemoryRegion
impl UnsafeUnpin for HostGuestMemoryRegion
impl UnwindSafe for HostGuestMemoryRegion
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