Enum tinyid::TinyIdError
source · pub enum TinyIdError {
InvalidLength,
InvalidCharacters,
Conversion(String),
GenerationFailure,
}
Expand description
Error type used by TinyId
operations that are fallible.
Variants§
InvalidLength
Error returned when a string has too many characters to be a valid TinyId
.
InvalidCharacters
Error returned when a string has invalid characters to be a valid TinyId
.
Conversion(String)
A forwarded error message from a built-in conversion.
GenerationFailure
Error returned when ID generation fails.
Trait Implementations§
source§impl Clone for TinyIdError
impl Clone for TinyIdError
source§fn clone(&self) -> TinyIdError
fn clone(&self) -> TinyIdError
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 TinyIdError
impl Debug for TinyIdError
source§impl Display for TinyIdError
impl Display for TinyIdError
source§impl Error for TinyIdError
impl Error for TinyIdError
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 From<TryFromSliceError> for TinyIdError
impl From<TryFromSliceError> for TinyIdError
source§fn from(err: TryFromSliceError) -> Self
fn from(err: TryFromSliceError) -> Self
Converts to this type from the input type.
source§impl Hash for TinyIdError
impl Hash for TinyIdError
source§impl Ord for TinyIdError
impl Ord for TinyIdError
source§fn cmp(&self, other: &TinyIdError) -> Ordering
fn cmp(&self, other: &TinyIdError) -> 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<TinyIdError> for TinyIdError
impl PartialEq<TinyIdError> for TinyIdError
source§fn eq(&self, other: &TinyIdError) -> bool
fn eq(&self, other: &TinyIdError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TinyIdError> for TinyIdError
impl PartialOrd<TinyIdError> for TinyIdError
source§fn partial_cmp(&self, other: &TinyIdError) -> Option<Ordering>
fn partial_cmp(&self, other: &TinyIdError) -> 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 more