pub enum StreamQualityResponse {
Native {
position: f64,
},
ReloadStream {
new_url: String,
position: f64,
},
}Expand description
Response for a mid-playback streaming-quality change.
Mirrors AudioTrackSwitchResponse: the backend decides whether the caller
has to reload anything, so no strategy branch lives in the UI.
TRACES: UR-074 | DR-162
Variants§
Native
The native backend was reloaded here; nothing left for the frontend.
ReloadStream
HTML5 must reload its element with this URL.
Trait Implementations§
Source§impl Debug for StreamQualityResponse
impl Debug for StreamQualityResponse
Source§impl NamedType for StreamQualityResponse
impl NamedType for StreamQualityResponse
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 StreamQualityResponse
impl Serialize for StreamQualityResponse
Source§impl Type for StreamQualityResponse
impl Type for StreamQualityResponse
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 StreamQualityResponse
Auto Trait Implementations§
impl Freeze for StreamQualityResponse
impl RefUnwindSafe for StreamQualityResponse
impl Send for StreamQualityResponse
impl Sync for StreamQualityResponse
impl Unpin for StreamQualityResponse
impl UnsafeUnpin for StreamQualityResponse
impl UnwindSafe for StreamQualityResponse
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