pub struct PipelineHandle {
pub input_tx: Sender<PipelineInput>,
pub output_rx: Receiver<PipelineOutput>,
pub metrics: Arc<RwLock<PipelineMetrics>>,
/* private fields */
}Available on crate feature
audio only.Expand description
Handle to a running audio pipeline.
Provides channels for sending input, receiving output, reading metrics, and shutting down the pipeline.
Fields§
§input_tx: Sender<PipelineInput>Send audio, text, or control messages into the pipeline.
output_rx: Receiver<PipelineOutput>Receive audio, transcript, or metrics output from the pipeline.
metrics: Arc<RwLock<PipelineMetrics>>Real-time pipeline metrics (updated after each stage).
Implementations§
Auto Trait Implementations§
impl Freeze for PipelineHandle
impl !RefUnwindSafe for PipelineHandle
impl Send for PipelineHandle
impl Sync for PipelineHandle
impl Unpin for PipelineHandle
impl UnsafeUnpin for PipelineHandle
impl !UnwindSafe for PipelineHandle
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