#[repr(C)]pub struct InvokePacket {
pub instance_hash: CapHash,
pub endpoint_idx: u32,
pub _pad: u32,
pub args: [u64; 4],
pub initial_gas: u64,
}Expand description
Fixed-layout invocation packet. Sent as raw #[repr(C)] bytes via
the existing rkyv Request envelope (its payload field). The
guest reads the bytes directly with core::ptr::read_unaligned.
instance_hash keys the cap to invoke (a published Cap::Instance).
endpoint_idx selects the entry within ImageCap.endpoints.
args overlay φ[7..=10] on top of the endpoint’s initial_regs.
Fields§
§instance_hash: CapHash§endpoint_idx: u32§_pad: u32§args: [u64; 4]§initial_gas: u64Implementations§
Source§impl InvokePacket
impl InvokePacket
Trait Implementations§
Source§impl Clone for InvokePacket
impl Clone for InvokePacket
Source§fn clone(&self) -> InvokePacket
fn clone(&self) -> InvokePacket
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 InvokePacket
impl Debug for InvokePacket
Source§impl PartialEq for InvokePacket
impl PartialEq for InvokePacket
impl Copy for InvokePacket
impl Eq for InvokePacket
impl StructuralPartialEq for InvokePacket
Auto Trait Implementations§
impl Freeze for InvokePacket
impl RefUnwindSafe for InvokePacket
impl Send for InvokePacket
impl Sync for InvokePacket
impl Unpin for InvokePacket
impl UnsafeUnpin for InvokePacket
impl UnwindSafe for InvokePacket
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> 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.