Struct sapiens::VoidTaskProgressUpdateObserver
source · pub struct VoidTaskProgressUpdateObserver;
Expand description
A void observer
Trait Implementations§
source§impl RuntimeObserver for VoidTaskProgressUpdateObserver
impl RuntimeObserver for VoidTaskProgressUpdateObserver
source§fn on_task<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_task: &'life1 str
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_task<'life0, 'life1, 'async_trait>( &'life0 mut self, _task: &'life1 str ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Called when the task is submitted
source§fn on_start<'life0, 'async_trait>(
&'life0 mut self,
_context: ContextDump
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_start<'life0, 'async_trait>( &'life0 mut self, _context: ContextDump ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called on start
source§fn on_model_update<'life0, 'async_trait>(
&'life0 mut self,
_event: ModelNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_model_update<'life0, 'async_trait>( &'life0 mut self, _event: ModelNotification ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called when the model returns something
source§fn on_message<'life0, 'async_trait>(
&'life0 mut self,
_event: MessageNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_message<'life0, 'async_trait>( &'life0 mut self, _event: MessageNotification ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called when the scheduler has selected a message
source§fn on_invocation_result<'life0, 'async_trait>(
&'life0 mut self,
_event: InvocationResultNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_invocation_result<'life0, 'async_trait>( &'life0 mut self, _event: InvocationResultNotification ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called when the tool invocation was successful
source§fn on_termination<'life0, 'async_trait>(
&'life0 mut self,
_event: TerminationNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_termination<'life0, 'async_trait>( &'life0 mut self, _event: TerminationNotification ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called when the task is done
Auto Trait Implementations§
impl RefUnwindSafe for VoidTaskProgressUpdateObserver
impl Send for VoidTaskProgressUpdateObserver
impl Sync for VoidTaskProgressUpdateObserver
impl Unpin for VoidTaskProgressUpdateObserver
impl UnwindSafe for VoidTaskProgressUpdateObserver
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request