pub struct HookInvocation { /* private fields */ }Expand description
One pending host-bridged hook invocation awaiting a decision.
Implementations§
Source§impl HookInvocation
impl HookInvocation
Sourcepub fn id(&self) -> &HookInvocationId
pub fn id(&self) -> &HookInvocationId
Returns the runtime-assigned invocation identifier.
Sourcepub fn request(&self) -> &HookRequest
pub fn request(&self) -> &HookRequest
Returns the typed hook request payload.
Trait Implementations§
Source§impl Clone for HookInvocation
impl Clone for HookInvocation
Source§fn clone(&self) -> HookInvocation
fn clone(&self) -> HookInvocation
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 moreSource§impl Debug for HookInvocation
impl Debug for HookInvocation
impl Eq for HookInvocation
Source§impl PartialEq for HookInvocation
impl PartialEq for HookInvocation
Source§impl Serialize for HookInvocation
impl Serialize for HookInvocation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HookInvocation
Auto Trait Implementations§
impl Forget for HookInvocation
impl Freeze for HookInvocationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ToolName>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for HookInvocation
impl RefUnwindSafe for HookInvocation
impl Send for HookInvocation
impl Sync for HookInvocation
impl Unpin for HookInvocation
impl UnsafeUnpin for HookInvocationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ToolName>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for HookInvocation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.