pub struct RecordingSink<S: StorageBackend> { /* private fields */ }Available on crate feature
record only.Expand description
Records a stream to sequential objects under a storage prefix.
Each object spans up to chunk_duration seconds (cut on the first keyframe
at or past the boundary, so chunks remain independently decodable).
Implementations§
Source§impl<S: StorageBackend> RecordingSink<S>
impl<S: StorageBackend> RecordingSink<S>
Trait Implementations§
Source§impl<S: StorageBackend> MediaSink for RecordingSink<S>
impl<S: StorageBackend> MediaSink for RecordingSink<S>
Source§fn send_frame<'life0, 'async_trait>(
&'life0 mut self,
frame: MediaFrame,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_frame<'life0, 'async_trait>(
&'life0 mut self,
frame: MediaFrame,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a frame to this sink.
Auto Trait Implementations§
impl<S> Freeze for RecordingSink<S>where
S: Freeze,
impl<S> RefUnwindSafe for RecordingSink<S>where
S: RefUnwindSafe,
impl<S> Send for RecordingSink<S>
impl<S> Sync for RecordingSink<S>
impl<S> Unpin for RecordingSink<S>where
S: Unpin,
impl<S> UnsafeUnpin for RecordingSink<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for RecordingSink<S>where
S: UnwindSafe,
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