pub struct UserBotLatencyObserver { /* private fields */ }Expand description
Measures the user-stop → first-bot-audio latency (TTFB of the bot’s reply).
Mirrors pipecat UserBotLatencyObserver.
Implementations§
Trait Implementations§
Source§impl Default for UserBotLatencyObserver
impl Default for UserBotLatencyObserver
Source§impl FrameObserver for UserBotLatencyObserver
impl FrameObserver for UserBotLatencyObserver
Source§fn on_process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
e: &'life1 FrameEvent<'life2>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn on_process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
e: &'life1 FrameEvent<'life2>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
A processor is about to handle a frame (
base_observer.py:79).Source§fn on_push<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_e: &'life1 FramePushEvent<'life2>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn on_push<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_e: &'life1 FramePushEvent<'life2>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
A frame was pushed source→destination (
base_observer.py:91).Auto Trait Implementations§
impl !Freeze for UserBotLatencyObserver
impl RefUnwindSafe for UserBotLatencyObserver
impl Send for UserBotLatencyObserver
impl Sync for UserBotLatencyObserver
impl Unpin for UserBotLatencyObserver
impl UnsafeUnpin for UserBotLatencyObserver
impl UnwindSafe for UserBotLatencyObserver
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