pub enum PageResolution<'a> {
Zero,
Bytes(&'a [u8]),
Missing(CapHash),
}Expand description
Resolution of a single page within a DataCap, shared by both engines so
they materialize byte-identically.
Variants§
Zero
Canonical zero page (absent / Empty): reads as zero; a write
copies-on-write a fresh page.
Bytes(&'a [u8])
A materialized, PAGE_SIZE-aligned page slab.
Missing(CapHash)
An elided page known only by its content hash: a faulting access is a PVM page fault. V1 never mints this.
Trait Implementations§
Source§impl<'a> Clone for PageResolution<'a>
impl<'a> Clone for PageResolution<'a>
Source§fn clone(&self) -> PageResolution<'a>
fn clone(&self) -> PageResolution<'a>
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<'a> Debug for PageResolution<'a>
impl<'a> Debug for PageResolution<'a>
impl<'a> Copy for PageResolution<'a>
Auto Trait Implementations§
impl<'a> Freeze for PageResolution<'a>
impl<'a> RefUnwindSafe for PageResolution<'a>
impl<'a> Send for PageResolution<'a>
impl<'a> Sync for PageResolution<'a>
impl<'a> Unpin for PageResolution<'a>
impl<'a> UnsafeUnpin for PageResolution<'a>
impl<'a> UnwindSafe for PageResolution<'a>
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<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.