pub enum BusEvent {
Eos {
element_type: ElementType,
name: Arc<str>,
},
Error {
element_type: ElementType,
name: Arc<str>,
error: Error,
},
Dropped {
element_type: ElementType,
name: Arc<str>,
},
Seeked {
element_type: ElementType,
name: Arc<str>,
requested: Duration,
landed: Duration,
},
}Variants§
Eos
Error
Dropped
A Queue with OverflowPolicy::DropNewest dropped a buffer
because it was full.
Seeked
Posted by crate::control::drain_control once
crate::element::SourceElement::seek returns — requested is
whatever crate::pipeline::Pipeline::seek was called with;
landed is where the source actually ended up, which the source
itself has to resolve (e.g. FileDemuxer can only reposition to a
keyframe at or before requested, never exactly on top of an
arbitrary timestamp — see its seek impl). Watch this instead of
assuming requested took effect verbatim.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BusEvent
impl !UnwindSafe for BusEvent
impl Freeze for BusEvent
impl Send for BusEvent
impl Sync for BusEvent
impl Unpin for BusEvent
impl UnsafeUnpin for BusEvent
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