pub struct TurnTrackingObserver { /* private fields */ }Expand description
Tracks user/bot speaking edges → turn boundaries (pipecat
TurnTrackingObserver). Records each boundary with its timestamp so tests
and exporters can read the turn sequence.
Implementations§
Trait Implementations§
Source§impl Default for TurnTrackingObserver
impl Default for TurnTrackingObserver
Source§impl FrameObserver for TurnTrackingObserver
impl FrameObserver for TurnTrackingObserver
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 TurnTrackingObserver
impl RefUnwindSafe for TurnTrackingObserver
impl Send for TurnTrackingObserver
impl Sync for TurnTrackingObserver
impl Unpin for TurnTrackingObserver
impl UnsafeUnpin for TurnTrackingObserver
impl UnwindSafe for TurnTrackingObserver
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