Enum nitox::ArgumentValidationError
source · pub enum ArgumentValidationError {
ContainsSpace,
ContainsTab,
}
Expand description
This error is designed to be given when an argument like the subject
or queue_group
arguments are
containing spaces or tabs, which is prohibited by the protocol and trigger an error server-side
Variants
ContainsSpace
The argument contains spaces
ContainsTab
The argument contains tabs
Trait Implementations
sourceimpl Clone for ArgumentValidationError
impl Clone for ArgumentValidationError
sourcefn clone(&self) -> ArgumentValidationError
fn clone(&self) -> ArgumentValidationError
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 ArgumentValidationError
impl Debug for ArgumentValidationError
sourceimpl Display for ArgumentValidationError
impl Display for ArgumentValidationError
sourceimpl Fail for ArgumentValidationError
impl Fail for ArgumentValidationError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<ArgumentValidationError> for CommandError
impl From<ArgumentValidationError> for CommandError
sourcefn from(s: ArgumentValidationError) -> Self
fn from(s: ArgumentValidationError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ArgumentValidationError> for ArgumentValidationError
impl PartialEq<ArgumentValidationError> for ArgumentValidationError
sourcefn eq(&self, other: &ArgumentValidationError) -> bool
fn eq(&self, other: &ArgumentValidationError) -> bool
impl Eq for ArgumentValidationError
impl StructuralEq for ArgumentValidationError
impl StructuralPartialEq for ArgumentValidationError
Auto Trait Implementations
impl RefUnwindSafe for ArgumentValidationError
impl Send for ArgumentValidationError
impl Sync for ArgumentValidationError
impl Unpin for ArgumentValidationError
impl UnwindSafe for ArgumentValidationError
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.