pub struct MusicPageState {
pub target_channels: Channels,
pub target_sample_rate: TargetSampleRate,
pub target_bit_depth: TargetBitDepth,
pub _stream: Option<StreamSink>,
pub current_sink: Option<PlayerHandle>,
pub current_playing_file: Option<String>,
pub metadata_cache: HashMap<String, AudioMetadata>,
pub status_cache: HashMap<String, MusicFileStatus>,
pub is_scanned: bool,
pub task_handle: Option<TaskHandle<MusicConfig>>,
pub import_status: String,
}Fields§
§target_channels: Channels§target_sample_rate: TargetSampleRate§target_bit_depth: TargetBitDepth§_stream: Option<StreamSink>§current_sink: Option<PlayerHandle>§current_playing_file: Option<String>§metadata_cache: HashMap<String, AudioMetadata>§status_cache: HashMap<String, MusicFileStatus>§is_scanned: bool§task_handle: Option<TaskHandle<MusicConfig>>§import_status: StringTrait Implementations§
Auto Trait Implementations§
impl !Freeze for MusicPageState
impl !RefUnwindSafe for MusicPageState
impl Send for MusicPageState
impl !Sync for MusicPageState
impl Unpin for MusicPageState
impl UnsafeUnpin for MusicPageState
impl !UnwindSafe for MusicPageState
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more