pub struct IdleFrameObserver { /* private fields */ }Expand description
Drives idle detection (PROCESSOR-DESIGN §4.1 / pipecat task.py:70): bumps a
monotonic counter every time one of the configured “activity” frame kinds is
observed. The PipelineTask idle watcher
reads the counter and fires a timeout when it stops advancing.
Implementations§
Trait Implementations§
Source§impl FrameObserver for IdleFrameObserver
impl FrameObserver for IdleFrameObserver
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 IdleFrameObserver
impl RefUnwindSafe for IdleFrameObserver
impl Send for IdleFrameObserver
impl Sync for IdleFrameObserver
impl Unpin for IdleFrameObserver
impl UnsafeUnpin for IdleFrameObserver
impl UnwindSafe for IdleFrameObserver
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