Struct mpd_protocol::command::CommandList
source · pub struct CommandList(/* private fields */);
Expand description
A non-empty list of commands.
Implementations§
source§impl CommandList
impl CommandList
sourcepub fn new(first: Command) -> Self
pub fn new(first: Command) -> Self
Create a command list from the given single command.
Unless further commands are added, the command will not be wrapped into a list.
sourcepub fn command(self, command: Command) -> Self
pub fn command(self, command: Command) -> Self
Add another command to the list.
Same as CommandList::add
, but takes and returns self
for chaining.
Trait Implementations§
source§impl Clone for CommandList
impl Clone for CommandList
source§fn clone(&self) -> CommandList
fn clone(&self) -> CommandList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommandList
impl Debug for CommandList
source§impl Extend<Command> for CommandList
impl Extend<Command> for CommandList
source§fn extend<T: IntoIterator<Item = Command>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Command>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Hash for CommandList
impl Hash for CommandList
source§impl PartialEq for CommandList
impl PartialEq for CommandList
source§fn eq(&self, other: &CommandList) -> bool
fn eq(&self, other: &CommandList) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CommandList
impl StructuralPartialEq for CommandList
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more