pub enum SmallUidError {
SystemTime(SystemTimeError),
TimestampLimit,
RandomSizeLimit,
NotABase64Url,
DecodeSlice(DecodeSliceError),
VecToArray,
InvalidChar,
}Expand description
Errors that can occur when creating a SmallUid.
Variants§
SystemTime(SystemTimeError)
TimestampLimit
RandomSizeLimit
NotABase64Url
DecodeSlice(DecodeSliceError)
VecToArray
InvalidChar
Trait Implementations§
Source§impl Debug for SmallUidError
impl Debug for SmallUidError
Source§impl Display for SmallUidError
impl Display for SmallUidError
Source§impl Error for SmallUidError
impl Error for SmallUidError
1.30.0 · 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<DecodeSliceError> for SmallUidError
impl From<DecodeSliceError> for SmallUidError
Source§fn from(err: DecodeSliceError) -> Self
fn from(err: DecodeSliceError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for SmallUidError
impl From<SystemTimeError> for SmallUidError
Source§fn from(err: SystemTimeError) -> Self
fn from(err: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SmallUidError
impl RefUnwindSafe for SmallUidError
impl Send for SmallUidError
impl Sync for SmallUidError
impl Unpin for SmallUidError
impl UnwindSafe for SmallUidError
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