pub struct EventProcessor { /* private fields */ }Implementations§
Source§impl EventProcessor
impl EventProcessor
pub fn new(context_id: String, task_id: String, meta: InvocationMeta) -> Self
pub fn process( &mut self, event: &Event, ) -> Result<Option<TaskArtifactUpdateEvent>>
Sourcepub fn make_terminal_events(&self) -> Vec<TaskStatusUpdateEvent>
pub fn make_terminal_events(&self) -> Vec<TaskStatusUpdateEvent>
The final status: auth-required or input-required when an event stopped the run
to wait on the caller, completed otherwise.
Auto Trait Implementations§
impl Forget for EventProcessor
impl Freeze for EventProcessorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, Value)>: Freeze,
PhantomData<(String, i64)>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const ActingContext is !null: Freeze,
PhantomData<ActingContext>: Freeze,
PhantomData<Evidence>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<Part>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, WorkflowPosition)>: Freeze,
PhantomData<GroundingSource>: Freeze,
PhantomData<((String, String), EmittedText)>: Freeze,
impl Move for EventProcessor
impl RefUnwindSafe for EventProcessor
impl Send for EventProcessorwhere
RawVecInner: Send,
RawTable<(String, Value)>: Send,
RawTable<(String, i64)>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
BoxRaw<ActingContext>: Send,
NonZero<i32>: Send,
Utc: Send,
RawTable<(String, WorkflowPosition)>: Send,
RawTable<((String, String), EmittedText)>: Send,
impl Sync for EventProcessorwhere
RawVecInner: Sync,
RawTable<(String, Value)>: Sync,
RawTable<(String, i64)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
BoxRaw<ActingContext>: Sync,
NonZero<i32>: Sync,
Utc: Sync,
RawTable<(String, WorkflowPosition)>: Sync,
RawTable<((String, String), EmittedText)>: Sync,
impl Unpin for EventProcessor
impl UnsafeUnpin for EventProcessorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
PhantomData<(String, i64)>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const ActingContext is !null: UnsafeUnpin,
PhantomData<ActingContext>: UnsafeUnpin,
PhantomData<Evidence>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<Part>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, WorkflowPosition)>: UnsafeUnpin,
PhantomData<GroundingSource>: UnsafeUnpin,
PhantomData<((String, String), EmittedText)>: UnsafeUnpin,
impl UnwindSafe for EventProcessorwhere
RawVecInner: UnwindSafe,
HashMap<String, Value>: UnwindSafe,
HashMap<String, i64>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BoxRaw<ActingContext>: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
HashMap<String, WorkflowPosition>: UnwindSafe,
HashMap<(String, String), EmittedText>: UnwindSafe,
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more