Trait mpd_client::commands::CommandList [−][src]
pub trait CommandList: Sealed { type Response; }
Types which can be used as a typed command list, using
Client::command_list
.
This is implemented for tuples of Command
s where it returns a tuple of the same
size of the responses corresponding to the commands, as well as for a vector of the same
command type where it returns a vector of the same length of the responses.
Associated Types
Loading content...Implementations on Foreign Types
impl<C> CommandList for Vec<C> where
C: Command,
[src]
impl<C> CommandList for Vec<C> where
C: Command,
[src]Arbitrarily long sequence of the same command.
type Response = Vec<C::Response>
fn to_raw_command_list(self) -> Option<RawCommandList>
[src]
fn parse_responses(
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
[src]
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
impl<A> CommandList for (A,) where
A: Command,
[src]
impl<A> CommandList for (A,) where
A: Command,
[src]type Response = (A::Response,)
fn to_raw_command_list(self) -> Option<RawCommandList>
[src]
fn parse_responses(
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
[src]
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
impl<A, B> CommandList for (A, B) where
A: Command,
B: Command,
[src]
impl<A, B> CommandList for (A, B) where
A: Command,
B: Command,
[src]type Response = (A::Response, B::Response)
fn to_raw_command_list(self) -> Option<RawCommandList>
[src]
fn parse_responses(
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
[src]
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
impl<A, B, C> CommandList for (A, B, C) where
A: Command,
B: Command,
C: Command,
[src]
impl<A, B, C> CommandList for (A, B, C) where
A: Command,
B: Command,
C: Command,
[src]type Response = (A::Response, B::Response, C::Response)
fn to_raw_command_list(self) -> Option<RawCommandList>
[src]
fn parse_responses(
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
[src]
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
impl<A, B, C, D, E> CommandList for (A, B, C, D, E) where
A: Command,
B: Command,
C: Command,
D: Command,
E: Command,
[src]
impl<A, B, C, D, E> CommandList for (A, B, C, D, E) where
A: Command,
B: Command,
C: Command,
D: Command,
E: Command,
[src]type Response = (A::Response, B::Response, C::Response, D::Response, E::Response)
fn to_raw_command_list(self) -> Option<RawCommandList>
[src]
fn parse_responses(
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
[src]
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
impl<A, B, C, D, E, F> CommandList for (A, B, C, D, E, F) where
A: Command,
B: Command,
C: Command,
D: Command,
E: Command,
F: Command,
[src]
impl<A, B, C, D, E, F> CommandList for (A, B, C, D, E, F) where
A: Command,
B: Command,
C: Command,
D: Command,
E: Command,
F: Command,
[src]type Response = (A::Response, B::Response, C::Response, D::Response, E::Response, F::Response)
fn to_raw_command_list(self) -> Option<RawCommandList>
[src]
fn parse_responses(
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
[src]
frames: Vec<Frame>
) -> Result<Self::Response, TypedResponseError>
impl<A, B, C, D, E, F, G> CommandList for (A, B, C, D, E, F, G) where
A: Command,
B: Command,
C: Command,
D: Command,
E: Command,
F: Command,
G: Command,
[src]
impl<A, B, C, D, E, F, G> CommandList for (A, B, C, D, E, F, G) where
A: Command,
B: Command,
C: Command,
D: Command,
E: Command,
F: Command,
G: Command,
[src]impl<A, B, C, D, E, F, G, H> CommandList for (A, B, C, D, E, F, G, H) where
A: Command,
B: Command,
C: Command,
D: Command,
E: Command,
F: Command,
G: Command,
H: Command,
[src]
impl<A, B, C, D, E, F, G, H> CommandList for (A, B, C, D, E, F, G, H) where
A: Command,
B: Command,
C: Command,
D: Command,
E: Command,
F: Command,
G: Command,
H: Command,
[src]