[][src]Trait mpd_protocol::command::Argument

pub trait Argument {
    pub fn render(self) -> Cow<'static, str>;
}

Things which can be used as arguments for commands.

Required methods

pub fn render(self) -> Cow<'static, str>[src]

Return the string representation of the argument.

This does not need to include escaping (except where it is necessary due to nesting of escaped values, such as in filter expressions) or quoting of values containing whitespace.

Loading content...

Implementations on Foreign Types

impl Argument for String[src]

impl Argument for &'static str[src]

impl Argument for Cow<'static, str>[src]

impl Argument for bool[src]

impl Argument for Duration[src]

pub fn render(self) -> Cow<'static, str>[src]

Song durations in the format MPD expects. Will round to third decimal place.

Loading content...

Implementors

Loading content...