pub struct PlaybackConfig {
pub software_volume: bool,
pub replaygain: ReplayGainMode,
pub ticker_fps: u8,
pub target_fps: u8,
pub show_fps: bool,
pub pre_amp_db: f64,
pub output_device: Option<String>,
}Fields§
§software_volume: bool§replaygain: ReplayGainMode§ticker_fps: u8Ticker scroll speed in frames-per-second (default: 8). The title scrolls one character per frame. Higher = faster scroll.
target_fps: u8UI render rate in frames-per-second (default: 60). Controls how often the TUI redraws. 30, 60, or 120 are typical values.
show_fps: boolShow an FPS counter overlay in the top-right corner.
pre_amp_db: f64ReplayGain pre-amplification in dB. Applied on top of track/album gain. Positive values boost, negative values attenuate. Default: 0.0.
output_device: Option<String>Output audio device name. None = system default. Persisted by name (not ID) since IDs can change across reboots.
Trait Implementations§
Source§impl Clone for PlaybackConfig
impl Clone for PlaybackConfig
Source§fn clone(&self) -> PlaybackConfig
fn clone(&self) -> PlaybackConfig
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 PlaybackConfig
impl Debug for PlaybackConfig
Source§impl Default for PlaybackConfig
impl Default for PlaybackConfig
Source§impl<'de> Deserialize<'de> for PlaybackConfigwhere
PlaybackConfig: Default,
impl<'de> Deserialize<'de> for PlaybackConfigwhere
PlaybackConfig: 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 PlaybackConfig
impl RefUnwindSafe for PlaybackConfig
impl Send for PlaybackConfig
impl Sync for PlaybackConfig
impl Unpin for PlaybackConfig
impl UnsafeUnpin for PlaybackConfig
impl UnwindSafe for PlaybackConfig
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