pub(in http) struct CompletionWorkflow<'a, R, O> {
runtime: &'a RuntimeState,
repository: R,
observer: O,
}Fields§
§runtime: &'a RuntimeState§repository: R§observer: OImplementations§
Source§impl<R, O> CompletionWorkflow<'_, R, O>where
R: CompletionRepository,
O: CompletionObserver,
impl<R, O> CompletionWorkflow<'_, R, O>where
R: CompletionRepository,
O: CompletionObserver,
pub(in http) async fn complete( &self, input: CompletionInput, ) -> Result<NodeChunkCompletionResponse, CompletionError>
async fn finalize( &self, job_id: Uuid, node_public_key: &str, ) -> Result<bool, CompletionError>
async fn record_event( &self, job_id: Uuid, event_type: &'static str, claim_token: &ClaimToken, error: &str, )
Auto Trait Implementations§
impl<'a, R, O> Freeze for CompletionWorkflow<'a, R, O>
impl<'a, R, O> !RefUnwindSafe for CompletionWorkflow<'a, R, O>
impl<'a, R, O> Send for CompletionWorkflow<'a, R, O>
impl<'a, R, O> Sync for CompletionWorkflow<'a, R, O>
impl<'a, R, O> Unpin for CompletionWorkflow<'a, R, O>
impl<'a, R, O> UnsafeUnpin for CompletionWorkflow<'a, R, O>where
R: UnsafeUnpin,
O: UnsafeUnpin,
impl<'a, R, O> !UnwindSafe for CompletionWorkflow<'a, R, O>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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