pub struct BareFrame<'a> { /* private fields */ }Expand description
Read-only view of just the pinned slots of an Instance’s MainFrame.
This is the “BareFrame” surface in §22: kernel-issued caps live
here, addressed by SlotIdx matching the Image’s pinning
declarations.
Implementations§
Source§impl<'a> BareFrame<'a>
impl<'a> BareFrame<'a>
pub fn new( cnode: &'a CNodeCap, pinned: &'a [SlotIdx], cache: &'a CacheDirectory, ) -> Self
Sourcepub fn get(&self, idx: SlotIdx) -> Option<CapHashOrRef>
pub fn get(&self, idx: SlotIdx) -> Option<CapHashOrRef>
Read the cap target at a pinned slot. Returns None if the
slot is either not pinned by this Image’s declarations or
empty.
Sourcepub fn pinned_slots(&self) -> impl Iterator<Item = &SlotIdx>
pub fn pinned_slots(&self) -> impl Iterator<Item = &SlotIdx>
Image-declared pinned-slot iterator.
Auto Trait Implementations§
impl<'a> Freeze for BareFrame<'a>
impl<'a> !RefUnwindSafe for BareFrame<'a>
impl<'a> Send for BareFrame<'a>
impl<'a> Sync for BareFrame<'a>
impl<'a> Unpin for BareFrame<'a>
impl<'a> UnsafeUnpin for BareFrame<'a>
impl<'a> !UnwindSafe for BareFrame<'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.