pub struct MainFrame<'a> { /* private fields */ }Expand description
Read-only view of an active Instance’s MainFrame cnode.
Implementations§
Source§impl<'a> MainFrame<'a>
impl<'a> MainFrame<'a>
pub fn new( cnode: &'a CNodeCap, pinned: &'a [SlotIdx], cache: &'a CacheDirectory, ) -> Self
Sourcepub fn resolve(&self, path: &SlotPath) -> Result<Option<CapHashOrRef>, VmError>
pub fn resolve(&self, path: &SlotPath) -> Result<Option<CapHashOrRef>, VmError>
Resolve a SlotPath against this MainFrame. Walks nested
Cap::CNode slots via the cache; returns the cap target at
the path’s terminal slot (or None if the slot is empty).
Error: if any intermediate step fails to land on a
Cap::CNode or hits an empty slot, returns
VmError::{SlotKindMismatch, SlotEmpty}.
Auto Trait Implementations§
impl<'a> Freeze for MainFrame<'a>
impl<'a> !RefUnwindSafe for MainFrame<'a>
impl<'a> Send for MainFrame<'a>
impl<'a> Sync for MainFrame<'a>
impl<'a> Unpin for MainFrame<'a>
impl<'a> UnsafeUnpin for MainFrame<'a>
impl<'a> !UnwindSafe for MainFrame<'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
§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.