#[non_exhaustive]pub enum FingerprintError {
EmptySourceName,
EmptyOffset,
SerializationFailed(Error),
}Expand description
Dedicated error type for event fingerprint failures.
Returned by fingerprint_event_stable and fingerprint_event_transient
so callers can distinguish empty-field validation from serialisation failures
without inspecting free-form strings.
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.
EmptySourceName
The event’s source.source_name field is empty or whitespace.
EmptyOffset
The event’s source.offset field is empty or whitespace.
SerializationFailed(Error)
Serialising the event payload for hashing failed.
Trait Implementations§
Source§impl Debug for FingerprintError
impl Debug for FingerprintError
Source§impl Display for FingerprintError
impl Display for FingerprintError
Source§impl Error for FingerprintError
impl Error for FingerprintError
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<Error> for FingerprintError
impl From<Error> for FingerprintError
Source§impl From<FingerprintError> for Error
impl From<FingerprintError> for Error
Source§fn from(err: FingerprintError) -> Self
fn from(err: FingerprintError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FingerprintError
impl !UnwindSafe for FingerprintError
impl Freeze for FingerprintError
impl Send for FingerprintError
impl Sync for FingerprintError
impl Unpin for FingerprintError
impl UnsafeUnpin for FingerprintError
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