pub struct LiveStreamConfig {
pub stream_url: String,
pub video_id: String,
pub quality: String,
pub max_duration: Option<Duration>,
pub cancellation_token: CancellationToken,
pub event_bus: EventBus,
}Expand description
Common configuration shared across live fragment streaming.
Fieldsยง
ยงstream_url: StringThe HLS stream URL to stream live fragments from.
video_id: StringThe video ID (for event emission).
quality: StringQuality label (e.g. โ1080pโ).
max_duration: Option<Duration>Optional maximum streaming duration for this live fragment session.
cancellation_token: CancellationTokenCancellation token for graceful stop.
event_bus: EventBusThe event bus for emitting streaming events.
Auto Trait Implementationsยง
impl Freeze for LiveStreamConfig
impl RefUnwindSafe for LiveStreamConfig
impl Send for LiveStreamConfig
impl Sync for LiveStreamConfig
impl Unpin for LiveStreamConfig
impl UnsafeUnpin for LiveStreamConfig
impl UnwindSafe for LiveStreamConfig
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
Sourceยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Sourceยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Sourceยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Sourceยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Anyโs vtable from &Traitโs.Sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Anyโs vtable from &mut Traitโs.