pub struct TraceObserver { /* private fields */ }
Expand description
Trace collecting observer
Implementations§
Trait Implementations§
Source§impl Debug for TraceObserver
impl Debug for TraceObserver
Source§impl Default for TraceObserver
impl Default for TraceObserver
Source§impl RuntimeObserver for TraceObserver
impl RuntimeObserver for TraceObserver
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_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_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,
model_update: 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,
model_update: 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_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 Freeze for TraceObserver
impl !RefUnwindSafe for TraceObserver
impl Send for TraceObserver
impl Sync for TraceObserver
impl Unpin for TraceObserver
impl !UnwindSafe for TraceObserver
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> 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 moreSource§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