[−][src]Struct mpd_protocol::command::CommandBuilder
Builder for Command
s.
Methods
impl CommandBuilder
[src]
pub fn argument(self, argument: impl Into<String>) -> Self
[src]
Add an argument to the last command.
The argument is automatically escaped and quoted if necessary, but you if you want to
include nested data containing special characters (e.g. filter expressions), you may need
to pre-escape them using escape_argument
.
pub fn command(self, command: impl Into<String>) -> Self
[src]
Add another command, starting a command list.
pub fn finish(self) -> Result<Command, CommandError>
[src]
Complete the command, validating all entered components.
use mpd_protocol::Command; let c = Command::build("status"); assert_eq!( c.finish().unwrap().render(), "status\n" );
pub fn unwrap(self) -> Command
[src]
Finish the command, panicking when invalid.
Trait Implementations
impl Clone for CommandBuilder
[src]
fn clone(&self) -> CommandBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CommandBuilder
[src]
impl Eq for CommandBuilder
[src]
impl Hash for CommandBuilder
[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<CommandBuilder> for CommandBuilder
[src]
fn eq(&self, other: &CommandBuilder) -> bool
[src]
fn ne(&self, other: &CommandBuilder) -> bool
[src]
impl StructuralEq for CommandBuilder
[src]
impl StructuralPartialEq for CommandBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl UnwindSafe for CommandBuilder
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>,