#[non_exhaustive]pub struct QueueConfigPatch {
pub action_at_item_end: Option<ActionAtItemEnd>,
pub crossfade_settings: Option<CrossfadeSettings>,
pub max_concurrent_loads: Option<NonZeroUsize>,
pub playback_order: Option<PlaybackOrder>,
pub prefetch_duration: Option<f32>,
pub max_history_size: Option<usize>,
}Expand description
What a configuration document may say about QueueConfig.
Deserialize only, never Serialize: by the time a patch is typed
its references are resolved, so it holds secrets in the clear.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.action_at_item_end: Option<ActionAtItemEnd>§crossfade_settings: Option<CrossfadeSettings>§max_concurrent_loads: Option<NonZeroUsize>Max concurrent background prefetch loads. Default: 3.
playback_order: Option<PlaybackOrder>§prefetch_duration: Option<f32>Lead time in seconds before EOF at which the next queued track
is preloaded into the audio processor. Default: 3.5. Stays f32
seconds rather than the campaign’s humantime duration convention:
the value already reaches 10 setter and 14 read call sites as a bare
f32, and converting the type would only churn those for a
formatting preference.
max_history_size: Option<usize>Entries the navigation history keeps. Only explicit selections and auto-advances land there, so the default is a listening session’s worth of back-steps; the queue’s own track list is unbounded.
Trait Implementations§
Source§impl Clone for QueueConfigPatch
impl Clone for QueueConfigPatch
Source§impl Debug for QueueConfigPatch
impl Debug for QueueConfigPatch
Source§impl Default for QueueConfigPatch
impl Default for QueueConfigPatch
Source§impl<'de> Deserialize<'de> for QueueConfigPatchwhere
QueueConfigPatch: Default,
impl<'de> Deserialize<'de> for QueueConfigPatchwhere
QueueConfigPatch: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for QueueConfigPatch
impl RefUnwindSafe for QueueConfigPatch
impl Send for QueueConfigPatch
impl Sync for QueueConfigPatch
impl Unpin for QueueConfigPatch
impl UnsafeUnpin for QueueConfigPatch
impl UnwindSafe for QueueConfigPatch
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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> ⓘ
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSync for Twhere
T: Sync,
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.