pub struct UiConfig {Show 15 fields
pub ready_response: String,
pub default_file_path: String,
pub next_file_path: String,
pub default_track: TrackData,
pub next_track: TrackData,
pub initial_volume: u16,
pub initial_gain: i16,
pub initial_pitch: i16,
pub initial_progress_secs: u64,
pub next_progress_secs: u64,
pub default_duration_secs: u64,
pub next_duration_secs: u64,
pub initial_loop_range: Option<(u64, u64)>,
pub logs: Vec<String>,
pub playlist_entries: Vec<PlaylistEntryData>,
}Expand description
Initial state and demo data used by the terminal UI.
Fields§
§ready_response: String§default_file_path: String§next_file_path: String§default_track: TrackData§next_track: TrackData§initial_volume: u16§initial_gain: i16§initial_pitch: i16§initial_progress_secs: u64§next_progress_secs: u64§default_duration_secs: u64§next_duration_secs: u64§initial_loop_range: Option<(u64, u64)>§logs: Vec<String>§playlist_entries: Vec<PlaylistEntryData>Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiConfig
impl RefUnwindSafe for UiConfig
impl Send for UiConfig
impl Sync for UiConfig
impl Unpin for UiConfig
impl UnsafeUnpin for UiConfig
impl UnwindSafe for UiConfig
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<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