pub struct ProcessorSetup {
pub clock: Clock,
pub observer: Option<Observer>,
pub cancel: CancellationToken,
pub enable_metrics: bool,
pub enable_usage_metrics: bool,
}Expand description
One-time per-task wiring handed to every processor at startup (mirrors pipecat
FrameProcessorSetup, frame_processor.py:71): the pipeline clock, the
(optional) observer fan-out, the shared cancellation token, and the metric
toggles.
Fields§
§clock: Clock§observer: Option<Observer>§cancel: CancellationToken§enable_metrics: bool§enable_usage_metrics: boolTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessorSetup
impl !UnwindSafe for ProcessorSetup
impl Freeze for ProcessorSetup
impl Send for ProcessorSetup
impl Sync for ProcessorSetup
impl Unpin for ProcessorSetup
impl UnsafeUnpin for ProcessorSetup
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