pub enum ProtocolIdParseError {
InvalidUuid(Error),
NonCanonical,
WrongVersion,
}Expand description
Error returned when parsing a canonical protocol identifier.
Variants§
InvalidUuid(Error)
The text is not a valid UUID.
NonCanonical
The UUID is valid but is not canonical lowercase hyphenated text.
WrongVersion
The UUID does not use version 7.
Trait Implementations§
Source§impl Debug for ProtocolIdParseError
impl Debug for ProtocolIdParseError
Source§impl Display for ProtocolIdParseError
impl Display for ProtocolIdParseError
Source§impl Error for ProtocolIdParseError
impl Error for ProtocolIdParseError
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()
Auto Trait Implementations§
impl Freeze for ProtocolIdParseError
impl RefUnwindSafe for ProtocolIdParseError
impl Send for ProtocolIdParseError
impl Sync for ProtocolIdParseError
impl Unpin for ProtocolIdParseError
impl UnsafeUnpin for ProtocolIdParseError
impl UnwindSafe for ProtocolIdParseError
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