pub enum AutoplayDecision {
Stop,
AdvanceToNext,
ResumeStream {
position: f64,
},
ShowNextEpisodePopup {
current_episode: MediaItem,
next_episode: MediaItem,
countdown_seconds: u32,
auto_advance: bool,
},
}Expand description
Autoplay decision result - determines what happens after playback ends
Variants§
Stop
Stop playback (no next item or timer expired)
AdvanceToNext
Advance to next track in queue (for audio/movies)
ResumeStream
The stream ended well short of the item’s runtime — the connection
dropped, not the media. Re-open the same stream at position instead of
running any end-of-item logic (UR-040).
ShowNextEpisodePopup
Show next episode popup with countdown
Trait Implementations§
Source§impl Clone for AutoplayDecision
impl Clone for AutoplayDecision
Source§fn clone(&self) -> AutoplayDecision
fn clone(&self) -> AutoplayDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutoplayDecision
impl Debug for AutoplayDecision
Source§impl NamedType for AutoplayDecision
impl NamedType for AutoplayDecision
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to [Type::inline] but returns a [NamedDataType] instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a [NamedDataType] instead.
Source§impl Serialize for AutoplayDecision
impl Serialize for AutoplayDecision
Source§impl Type for AutoplayDecision
impl Type for AutoplayDecision
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Flatten for AutoplayDecision
Auto Trait Implementations§
impl Freeze for AutoplayDecision
impl RefUnwindSafe for AutoplayDecision
impl Send for AutoplayDecision
impl Sync for AutoplayDecision
impl Unpin for AutoplayDecision
impl UnsafeUnpin for AutoplayDecision
impl UnwindSafe for AutoplayDecision
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FunctionArg for Twhere
T: Type,
impl<T> FunctionArg for Twhere
T: Type,
§fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
Gets the type of an argument as a [
DataType]. Read more