Trait Argument

Source
pub trait Argument {
    // Required method
    fn render(&self, buf: &mut BytesMut);
}
Expand description

Things which can be used as arguments for commands.

Required Methods§

Source

fn render(&self, buf: &mut BytesMut)

Render the argument into the command buffer.

Spaces before/after arguments are inserted automatically, but values need to be escaped manually. See escape_argument.

Implementations on Foreign Types§

Source§

impl Argument for Cow<'_, str>

Source§

fn render(&self, buf: &mut BytesMut)

Source§

impl Argument for bool

Source§

fn render(&self, buf: &mut BytesMut)

Source§

impl Argument for str

Source§

fn render(&self, buf: &mut BytesMut)

Source§

impl Argument for u8

Source§

fn render(&self, buf: &mut BytesMut)

Source§

impl Argument for u16

Source§

fn render(&self, buf: &mut BytesMut)

Source§

impl Argument for u32

Source§

fn render(&self, buf: &mut BytesMut)

Source§

impl Argument for u64

Source§

fn render(&self, buf: &mut BytesMut)

Source§

impl Argument for usize

Source§

fn render(&self, buf: &mut BytesMut)

Source§

impl Argument for String

Source§

fn render(&self, buf: &mut BytesMut)

Source§

impl Argument for Duration

Source§

fn render(&self, buf: &mut BytesMut)

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

Source§

impl<A> Argument for &A
where A: Argument + ?Sized,

Source§

fn render(&self, buf: &mut BytesMut)

Implementors§