pub struct CommandError(pub String);Expand description
The error to be returned from a command.
It can be formed from anything implementing std::fmt::Display, but won’t
contain more data than a String
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for CommandError
impl Clone for CommandError
Source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
Returns a duplicate 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 CommandError
impl Debug for CommandError
Source§impl From<CommandError> for Error
impl From<CommandError> for Error
Source§fn from(d: CommandError) -> Self
fn from(d: CommandError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandError
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnwindSafe for CommandError
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