pub struct InstanceRef(pub [u8; 32]);Expand description
Opaque, 32-byte handle to an Instance held by an Arch.
The Arch chooses how to interpret it. For the skeleton both
backends use the cap content hash directly, so InstanceRef is
effectively a CapHash wrapper. If a backend later wants a
guest-internal handle (e.g. an index into a guest-side table for
cheap lookup), the natural follow-up is to make this an associated
type on Arch.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl Clone for InstanceRef
impl Clone for InstanceRef
Source§fn clone(&self) -> InstanceRef
fn clone(&self) -> InstanceRef
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 InstanceRef
impl Debug for InstanceRef
Source§impl Hash for InstanceRef
impl Hash for InstanceRef
Source§impl PartialEq for InstanceRef
impl PartialEq for InstanceRef
impl Copy for InstanceRef
impl Eq for InstanceRef
impl StructuralPartialEq for InstanceRef
Auto Trait Implementations§
impl Freeze for InstanceRef
impl RefUnwindSafe for InstanceRef
impl Send for InstanceRef
impl Sync for InstanceRef
impl Unpin for InstanceRef
impl UnsafeUnpin for InstanceRef
impl UnwindSafe for InstanceRef
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