Enum usiem::components::command::CommandError
source · #[non_exhaustive]
pub enum CommandError {
BadParameters(Cow<'static, str>),
SyntaxError(Cow<'static, str>),
NotFound(Cow<'static, str>),
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadParameters(Cow<'static, str>)
SyntaxError(Cow<'static, str>)
NotFound(Cow<'static, str>)
Trait Implementations
sourceimpl Clone for CommandError
impl Clone for CommandError
sourcefn clone(&self) -> CommandError
fn clone(&self) -> CommandError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CommandError
impl Debug for CommandError
sourceimpl Serialize for CommandError
impl Serialize for CommandError
Auto Trait Implementations
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnwindSafe for CommandError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more