pub struct HookCtx<'a> {
pub turn_id: &'a TurnId,
pub conversation_id: Option<&'a ConversationId>,
pub round_id: RoundId,
pub control: &'a CallControl,
}Expand description
Context supplied to every hook invocation.
control: &CallControl exposes the bounded attempt / call cancellation
so a filter can select! on user-approval responses.
Fields§
§turn_id: &'a TurnIdThe turn whose batch is being filtered.
conversation_id: Option<&'a ConversationId>Some on the conversation entries, None for bare turns.
round_id: RoundIdThe round that emitted the batch.
control: &'a CallControlAttempt/call-scoped control for select!-ing on approval
responses or deadlines.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HookCtx<'a>
impl<'a> RefUnwindSafe for HookCtx<'a>
impl<'a> Send for HookCtx<'a>
impl<'a> Sync for HookCtx<'a>
impl<'a> Unpin for HookCtx<'a>
impl<'a> UnsafeUnpin for HookCtx<'a>
impl<'a> UnwindSafe for HookCtx<'a>
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