pub struct ChunkProcessor { /* private fields */ }Expand description
Main chunk processor
Implementations§
Source§impl ChunkProcessor
impl ChunkProcessor
pub fn new( config: ChunkProcessorConfig, codec: Arc<MediaCodec>, output_queue: Arc<Queue<MediaChunk>>, ) -> Self
Sourcepub fn process_chunk_stream(
&self,
chunk_stream: RS2Stream<MediaChunk>,
) -> RS2Stream<Result<MediaChunk, ChunkProcessingError>>
pub fn process_chunk_stream( &self, chunk_stream: RS2Stream<MediaChunk>, ) -> RS2Stream<Result<MediaChunk, ChunkProcessingError>>
Process a stream of incoming chunks
Sourcepub async fn get_stats(&self) -> ChunkProcessorStats
pub async fn get_stats(&self) -> ChunkProcessorStats
Get processing statistics
Sourcepub fn create_monitoring_stream(&self) -> RS2Stream<ChunkProcessorStats>
pub fn create_monitoring_stream(&self) -> RS2Stream<ChunkProcessorStats>
Create a monitoring stream for chunk processing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChunkProcessor
impl !RefUnwindSafe for ChunkProcessor
impl Send for ChunkProcessor
impl Sync for ChunkProcessor
impl Unpin for ChunkProcessor
impl !UnwindSafe for ChunkProcessor
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