[−][src]Struct mpd_protocol::command::CommandList
A non-empty list of commands.
Commands will be automatically wrapped in a proper command list if necessary.
Methods
impl CommandList[src]
pub fn new(first: Command) -> Self[src]
Create a command list from the given single command.
Unless further commands are added, the command will not be wrapped into a list.
pub fn command(self, command: Command) -> Self[src]
Add another command to the list.
Same as add, but takes and returns self for chaining.
pub fn add(&mut self, command: Command)[src]
Add another command to the list.
pub fn len(&self) -> usize[src]
Get the number of commands in this command list.
This is never 0.
Trait Implementations
impl Clone for CommandList[src]
fn clone(&self) -> CommandList[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for CommandList[src]
impl Encoder<CommandList> for MpdCodec[src]
type Error = MpdCodecError
The type of encoding errors. Read more
fn encode(
&mut self,
command: CommandList,
buf: &mut BytesMut
) -> Result<(), Self::Error>[src]
&mut self,
command: CommandList,
buf: &mut BytesMut
) -> Result<(), Self::Error>
impl Eq for CommandList[src]
impl Extend<Command> for CommandList[src]
fn extend<T: IntoIterator<Item = Command>>(&mut self, iter: T)[src]
impl Hash for CommandList[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<CommandList> for CommandList[src]
fn eq(&self, other: &CommandList) -> bool[src]
fn ne(&self, other: &CommandList) -> bool[src]
impl StructuralEq for CommandList[src]
impl StructuralPartialEq for CommandList[src]
Auto Trait Implementations
impl RefUnwindSafe for CommandList
impl Send for CommandList
impl Sync for CommandList
impl Unpin for CommandList
impl UnwindSafe for CommandList
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,