pub struct RadioConfig {
pub lookahead: usize,
pub batch_size: usize,
pub use_subsonic: bool,
pub history_window: usize,
pub seed_window: usize,
pub discovery_weight: f64,
}Expand description
Radio / infinite play mode configuration.
Fields§
§lookahead: usizeNumber of tracks to keep queued ahead of the cursor.
batch_size: usizeNumber of tracks to add each time the queue runs low.
use_subsonic: boolUse Subsonic getSimilarSongs2 when a remote server is configured.
history_window: usizeDon’t repeat any of the last N tracks (play history exclusion window).
seed_window: usizeNumber of recently played tracks to use as seed (drifting seed window).
discovery_weight: f64Discovery weight: 0.0 = only familiar tracks, 1.0 = maximise discovery. Controls the recency bonus — higher values boost never-played/long-forgotten tracks.
Trait Implementations§
Source§impl Clone for RadioConfig
impl Clone for RadioConfig
Source§fn clone(&self) -> RadioConfig
fn clone(&self) -> RadioConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 RadioConfig
impl Debug for RadioConfig
Source§impl Default for RadioConfig
impl Default for RadioConfig
Source§impl<'de> Deserialize<'de> for RadioConfigwhere
RadioConfig: Default,
impl<'de> Deserialize<'de> for RadioConfigwhere
RadioConfig: 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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RadioConfig
impl RefUnwindSafe for RadioConfig
impl Send for RadioConfig
impl Sync for RadioConfig
impl Unpin for RadioConfig
impl UnsafeUnpin for RadioConfig
impl UnwindSafe for RadioConfig
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,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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>
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