pub enum AudioTrackSwitchResponse {
Native {
success: bool,
},
ReloadStream {
new_url: String,
position: f64,
},
}Expand description
Response for audio track switching operations
Variants§
Native
Native backend handled it (Android ExoPlayer)
ReloadStream
HTML5 needs to reload stream with new audio track
Trait Implementations§
Source§impl Debug for AudioTrackSwitchResponse
impl Debug for AudioTrackSwitchResponse
Source§impl NamedType for AudioTrackSwitchResponse
impl NamedType for AudioTrackSwitchResponse
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 AudioTrackSwitchResponse
impl Serialize for AudioTrackSwitchResponse
Source§impl Type for AudioTrackSwitchResponse
impl Type for AudioTrackSwitchResponse
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 AudioTrackSwitchResponse
Auto Trait Implementations§
impl Freeze for AudioTrackSwitchResponse
impl RefUnwindSafe for AudioTrackSwitchResponse
impl Send for AudioTrackSwitchResponse
impl Sync for AudioTrackSwitchResponse
impl Unpin for AudioTrackSwitchResponse
impl UnsafeUnpin for AudioTrackSwitchResponse
impl UnwindSafe for AudioTrackSwitchResponse
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
§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