[][src]Struct i3status_rs::blocks::music::Music

pub struct Music {
    id: usize,
    play_id: usize,
    next_id: usize,
    prev_id: usize,
    collapsed_id: usize,
    current_song_widget: RotatingTextWidget,
    prev: Option<TextWidget>,
    play: Option<TextWidget>,
    next: Option<TextWidget>,
    on_collapsed_click_widget: TextWidget,
    on_collapsed_click: Option<String>,
    on_click: Option<String>,
    dbus_conn: Connection,
    marquee: bool,
    marquee_interval: Duration,
    smart_trim: bool,
    max_width: usize,
    separator: String,
    seek_step: i64,
    players: Arc<Mutex<Vec<Player>>>,
    hide_when_empty: bool,
    send: Sender<Task>,
    format: FormatTemplate,
    scrolling: Scrolling,
}

Fields

id: usizeplay_id: usizenext_id: usizeprev_id: usizecollapsed_id: usizecurrent_song_widget: RotatingTextWidgetprev: Option<TextWidget>play: Option<TextWidget>next: Option<TextWidget>on_collapsed_click_widget: TextWidgeton_collapsed_click: Option<String>on_click: Option<String>dbus_conn: Connectionmarquee: boolmarquee_interval: Durationsmart_trim: boolmax_width: usizeseparator: Stringseek_step: i64players: Arc<Mutex<Vec<Player>>>hide_when_empty: boolsend: Sender<Task>format: FormatTemplatescrolling: Scrolling

Implementations

impl Music[src]

fn smart_trim(&self, artist: String, title: String) -> String[src]

Trait Implementations

impl Block for Music[src]

impl ConfigBlock for Music[src]

type Config = MusicConfig

Auto Trait Implementations

impl !RefUnwindSafe for Music[src]

impl !Send for Music[src]

impl !Sync for Music[src]

impl Unpin for Music[src]

impl !UnwindSafe for Music[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.