pub struct BackgroundAudioResume {
pub item_id: Option<String>,
pub position_seconds: f64,
}Expand description
Where playback stands when a background-audio handoff returns to the
foreground. See PlayerController::background_audio_resume.
TRACES: UR-040, UR-023 | DR-296
Fields§
§item_id: Option<String>Item the native audio player is on — None if the queue emptied (e.g.
the sleep timer stopped playback while backgrounded).
position_seconds: f64Absolute position in that item, in seconds.
Trait Implementations§
Source§impl Clone for BackgroundAudioResume
impl Clone for BackgroundAudioResume
Source§fn clone(&self) -> BackgroundAudioResume
fn clone(&self) -> BackgroundAudioResume
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 BackgroundAudioResume
impl Debug for BackgroundAudioResume
Source§impl NamedType for BackgroundAudioResume
impl NamedType for BackgroundAudioResume
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 PartialEq for BackgroundAudioResume
impl PartialEq for BackgroundAudioResume
Source§fn eq(&self, other: &BackgroundAudioResume) -> bool
fn eq(&self, other: &BackgroundAudioResume) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BackgroundAudioResume
impl Serialize for BackgroundAudioResume
Source§impl Type for BackgroundAudioResume
impl Type for BackgroundAudioResume
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 BackgroundAudioResume
impl StructuralPartialEq for BackgroundAudioResume
Auto Trait Implementations§
impl Freeze for BackgroundAudioResume
impl RefUnwindSafe for BackgroundAudioResume
impl Send for BackgroundAudioResume
impl Sync for BackgroundAudioResume
impl Unpin for BackgroundAudioResume
impl UnsafeUnpin for BackgroundAudioResume
impl UnwindSafe for BackgroundAudioResume
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