pub struct QueueFnEntry {
pub app_id: String,
pub name: String,
pub sig_hash: u64,
pub trampoline: fn(&Context, &[u8]) -> Result<Value>,
}Expand description
App-scoped queue-fn entry.
name is owned for return-type uniformity; today every entry comes
out of the host’s static inventory and app_id is always "host".
Fields§
§app_id: StringOwning application ID (always "host" today — queue fns live in
the host’s static inventory; kept on the type so dispatch sites
don’t churn if a per-app surface returns).
name: StringFunction name (owned for return-type uniformity).
sig_hash: u64xxh3_64 of the canonicalized signature, as produced by #[queue_fn].
trampoline: fn(&Context, &[u8]) -> Result<Value>Function pointer to the trampoline.
Trait Implementations§
Source§impl Clone for QueueFnEntry
impl Clone for QueueFnEntry
Source§fn clone(&self) -> QueueFnEntry
fn clone(&self) -> QueueFnEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueueFnEntry
impl RefUnwindSafe for QueueFnEntry
impl Send for QueueFnEntry
impl Sync for QueueFnEntry
impl Unpin for QueueFnEntry
impl UnsafeUnpin for QueueFnEntry
impl UnwindSafe for QueueFnEntry
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