Struct mpd::stats::Stats [] [src]

pub struct Stats {
    pub artists: u32,
    pub albums: u32,
    pub songs: u32,
    pub uptime: Duration,
    pub playtime: Duration,
    pub db_playtime: Duration,
    pub db_update: Timespec,
}

DB and playback statistics

Fields

artists: u32

number of artists in DB

albums: u32

number of albums in DB

songs: u32

number of songs in DB

uptime: Duration

total MPD uptime, seconds resolution

playtime: Duration

total playback time, seconds resolution

db_playtime: Duration

total playback time for all songs in DB, seconds resolution

db_update: Timespec

last DB update timestamp, seconds resolution

Methods

impl Stats
[src]

fn from_map(map: BTreeMap<StringString>) -> Result<StatsError>

build stats from map

Trait Implementations

impl PartialEq for Stats
[src]

fn eq(&self, __arg_0: &Stats) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Stats) -> bool

This method tests for !=.

impl Copy for Stats
[src]

impl Clone for Stats
[src]

fn clone(&self) -> Stats

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Stats
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.