Struct mpdpopm::commands::GeneralizedCommand [−][src]
pub struct GeneralizedCommand { /* fields omitted */ }
Expand description
A general command that will be run on the server, invoked by an MPD message
Implementations
pub fn new<I1, I2>(
formal_params: I1,
default_after: usize,
music_dir: &str,
cmd: &PathBuf,
args: I2,
update: Update
) -> GeneralizedCommand where
I1: Iterator<Item = FormalParameter>,
I2: Iterator<Item = String>,
pub fn execute<'a, I>(
&self,
tokens: I,
state: &PlayerStatus
) -> Result<PinnedTaggedCmdFuture, Error> where
I: Iterator<Item = &'a str>,
pub fn execute<'a, I>(
&self,
tokens: I,
state: &PlayerStatus
) -> Result<PinnedTaggedCmdFuture, Error> where
I: Iterator<Item = &'a str>,
Execute a general command
tokens
shall be an iterator over the message tokens, beginning with the first token
after the command name