pub struct IngestState { /* private fields */ }Expand description
Per-track header/segment state machine.
Implementations§
Source§impl IngestState
impl IngestState
pub fn new() -> Self
pub fn on_header(&mut self, id: &str)
pub fn has_header(&self, id: &str) -> bool
pub fn on_segment( &mut self, id: &str, number: Option<u64>, time: Option<u64>, ) -> Result<SegmentDisposition, IngestError>
pub fn mark_last(&mut self, id: &str)
pub fn is_last(&self, id: &str) -> bool
Trait Implementations§
Source§impl Debug for IngestState
impl Debug for IngestState
Auto Trait Implementations§
impl Forget for IngestState
impl Freeze for IngestState
impl Move for IngestState
impl RefUnwindSafe for IngestState
impl Send for IngestState
impl Sync for IngestState
impl Unpin for IngestState
impl UnsafeUnpin for IngestState
impl UnwindSafe for IngestState
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