[−][src]Struct i3status_rs::blocks::music::MusicConfig
Fields
player: Option<String>
Name of the music player. Must be the same name the player is registered with the MediaPlayer2 Interface. If not specified then the block will track all players found.
max_width: usize
Max width of the block in characters, not including the buttons.
dynamic_width: bool
Bool to specify whether the block will change width depending on the text content or remain static always (= max_width)
marquee: bool
Bool to specify if a marquee style rotation should be used if the title + artist is longer than max-width
marquee_interval: Duration
Marquee interval in seconds. This is the delay between each rotation.
marquee_speed: Duration
Marquee speed in seconds. This is the scrolling time used per character.
smart_trim: bool
Bool to specify whether smart trimming should be used when marquee rotation is disabled and the title + artist is longer than max-width. It will trim from both the artist and the title in proportion to their lengths, to try and show the most information possible.
separator: String
Separator to use between artist and title.
Array of control buttons to be displayed. Options are prev (previous title), play (play/pause) and next (next title).
on_collapsed_click: Option<String>
seek_step: i64
interface_name_exclude: Vec<String>
MPRIS interface name regex patterns to ignore.
hide_when_empty: bool
format: String
Format string for displaying music player info.
Trait Implementations
impl Clone for MusicConfig
[src]
fn clone(&self) -> MusicConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MusicConfig
[src]
impl Default for MusicConfig
[src]
impl<'de> Deserialize<'de> for MusicConfig where
MusicConfig: Default,
[src]
MusicConfig: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for MusicConfig
[src]
impl Send for MusicConfig
[src]
impl Sync for MusicConfig
[src]
impl Unpin for MusicConfig
[src]
impl UnwindSafe for MusicConfig
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,