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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.