#[non_exhaustive]pub enum ParseCodeError {
Empty,
SeparatorMissing,
Nameplate(ParseNameplateError),
Password(ParsePasswordError),
}
Expand description
An error occurred parsing the string as a valid wormhole mailbox code
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.
Empty
The code is empty
SeparatorMissing
A code must contain at least one ‘-’ to separate nameplate from password
Nameplate(ParseNameplateError)
An error occurred when parsing the nameplate
Password(ParsePasswordError)
An error occurred when parsing the code
Trait Implementations§
Source§impl Clone for ParseCodeError
impl Clone for ParseCodeError
Source§fn clone(&self) -> ParseCodeError
fn clone(&self) -> ParseCodeError
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 ParseCodeError
impl Debug for ParseCodeError
Source§impl Display for ParseCodeError
impl Display for ParseCodeError
Source§impl Error for ParseCodeError
impl Error for ParseCodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<ParseCodeError> for ParseError
impl From<ParseCodeError> for ParseError
Source§fn from(source: ParseCodeError) -> Self
fn from(source: ParseCodeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseCodeError> for WormholeError
impl From<ParseCodeError> for WormholeError
Source§fn from(source: ParseCodeError) -> Self
fn from(source: ParseCodeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseNameplateError> for ParseCodeError
impl From<ParseNameplateError> for ParseCodeError
Source§fn from(source: ParseNameplateError) -> Self
fn from(source: ParseNameplateError) -> Self
Converts to this type from the input type.
Source§impl From<ParsePasswordError> for ParseCodeError
impl From<ParsePasswordError> for ParseCodeError
Source§fn from(source: ParsePasswordError) -> Self
fn from(source: ParsePasswordError) -> Self
Converts to this type from the input type.
Source§impl Ord for ParseCodeError
impl Ord for ParseCodeError
Source§fn cmp(&self, other: &ParseCodeError) -> Ordering
fn cmp(&self, other: &ParseCodeError) -> 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 ParseCodeError
impl PartialEq for ParseCodeError
Source§impl PartialOrd for ParseCodeError
impl PartialOrd for ParseCodeError
impl Copy for ParseCodeError
impl Eq for ParseCodeError
impl StructuralPartialEq for ParseCodeError
Auto Trait Implementations§
impl Freeze for ParseCodeError
impl RefUnwindSafe for ParseCodeError
impl Send for ParseCodeError
impl Sync for ParseCodeError
impl Unpin for ParseCodeError
impl UnwindSafe for ParseCodeError
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