pub enum LogTrackerError {
Codec(CodecError),
Db(DbError),
}Expand description
Failure from LogTracker::track_one. Splitting the op into its index
triple is a CodecError; binding a value that won’t fit the backend’s
signed-integer column (a u64 past i64::MAX, via DbValue::from_u64)
is a DbError. Both are surfaced so the tracker can use the same checked
conversion the rest of the crate relies on instead of a lossy as cast.
Variants§
Codec(CodecError)
Splitting the op into its index triple failed.
Db(DbError)
A backend operation failed — including a u64 that won’t fit the
signed-integer column.
Trait Implementations§
Source§impl Debug for LogTrackerError
impl Debug for LogTrackerError
Source§impl Display for LogTrackerError
impl Display for LogTrackerError
Source§impl Error for LogTrackerError
impl Error for LogTrackerError
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<CodecError> for LogTrackerError
impl From<CodecError> for LogTrackerError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<DbError> for LogTrackerError
impl From<DbError> for LogTrackerError
Source§impl<E> From<LogTrackerError> for ProcessorError<E>
impl<E> From<LogTrackerError> for ProcessorError<E>
Source§fn from(source: LogTrackerError) -> Self
fn from(source: LogTrackerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LogTrackerError
impl !UnwindSafe for LogTrackerError
impl Freeze for LogTrackerError
impl Send for LogTrackerError
impl Sync for LogTrackerError
impl Unpin for LogTrackerError
impl UnsafeUnpin for LogTrackerError
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