Enum rsasl::mechname::MechanismNameError
source · #[non_exhaustive]pub enum MechanismNameError {
TooShort,
InvalidChar {
index: usize,
value: u8,
},
}
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.
TooShort
Mechanism name is shorter than 1 character
InvalidChar
Mechanism name contained a character outside of [A-Z0-9-_] at index
Trait Implementations§
source§impl Clone for MechanismNameError
impl Clone for MechanismNameError
source§fn clone(&self) -> MechanismNameError
fn clone(&self) -> MechanismNameError
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 MechanismNameError
impl Debug for MechanismNameError
source§impl Display for MechanismNameError
impl Display for MechanismNameError
source§impl Error for MechanismNameError
impl Error for MechanismNameError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Ord for MechanismNameError
impl Ord for MechanismNameError
source§fn cmp(&self, other: &MechanismNameError) -> Ordering
fn cmp(&self, other: &MechanismNameError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MechanismNameError
impl PartialEq for MechanismNameError
source§fn eq(&self, other: &MechanismNameError) -> bool
fn eq(&self, other: &MechanismNameError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MechanismNameError
impl PartialOrd for MechanismNameError
source§fn partial_cmp(&self, other: &MechanismNameError) -> Option<Ordering>
fn partial_cmp(&self, other: &MechanismNameError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MechanismNameError
impl Eq for MechanismNameError
impl StructuralPartialEq for MechanismNameError
Auto Trait Implementations§
impl Freeze for MechanismNameError
impl RefUnwindSafe for MechanismNameError
impl Send for MechanismNameError
impl Sync for MechanismNameError
impl Unpin for MechanismNameError
impl UnwindSafe for MechanismNameError
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