pub enum UlidGenerationError {
InvalidTimestamp,
Exhausted,
}Expand description
A refused issuance; the generator’s previous state remains unchanged.
Variants§
InvalidTimestamp
Unix milliseconds must fit the ULID’s unsigned 48-bit timestamp.
Exhausted
All suffixes at the last logical timestamp have been consumed.
Trait Implementations§
Source§impl Clone for UlidGenerationError
impl Clone for UlidGenerationError
impl Copy for UlidGenerationError
Source§impl Debug for UlidGenerationError
impl Debug for UlidGenerationError
Source§impl Display for UlidGenerationError
impl Display for UlidGenerationError
impl Eq for UlidGenerationError
Source§impl Error for UlidGenerationError
impl Error for UlidGenerationError
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 PartialEq for UlidGenerationError
impl PartialEq for UlidGenerationError
impl StructuralPartialEq for UlidGenerationError
Auto Trait Implementations§
impl Forget for UlidGenerationError
impl Freeze for UlidGenerationError
impl Move for UlidGenerationError
impl RefUnwindSafe for UlidGenerationError
impl Send for UlidGenerationError
impl Sync for UlidGenerationError
impl Unpin for UlidGenerationError
impl UnsafeUnpin for UlidGenerationError
impl UnwindSafe for UlidGenerationError
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