#[non_exhaustive]pub enum UuidError {
StringTooLong {
length: usize,
max: usize,
},
InvalidBase64 {
message: String,
},
InvalidLength {
expected: usize,
actual: usize,
},
RandomExhausted {
retries: u32,
},
}Expand description
Error from crate::uuid::KafkaUuid parsing or generation.
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.
StringTooLong
Input string is longer than the maximum base64 representation.
InvalidBase64
Base64 decoding failed.
InvalidLength
Decoded byte length does not match the UUID size.
RandomExhausted
random() exhausted its retry budget.
Trait Implementations§
impl Eq for UuidError
Source§impl Error for UuidError
impl Error for UuidError
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<UuidError> for ProtocolError
impl From<UuidError> for ProtocolError
impl StructuralPartialEq for UuidError
Auto Trait Implementations§
impl Freeze for UuidError
impl RefUnwindSafe for UuidError
impl Send for UuidError
impl Sync for UuidError
impl Unpin for UuidError
impl UnsafeUnpin for UuidError
impl UnwindSafe for UuidError
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