pub enum BucketLogError<T> {
Provider(T),
HeadNotFound(u64),
Conflict,
InvalidAppend(Link, Link, u64),
}Variants§
Provider(T)
The bucket log is empty
HeadNotFound(u64)
The bucket log is empty
Conflict
An append causes a conflict with the current of the log i.e. same link at the same height
InvalidAppend(Link, Link, u64)
An append does not implement a valid link structure st the previous link pointed at by the new log does not exist in the log at the expected height – current, previous, height
Trait Implementations§
Source§impl<T: Clone> Clone for BucketLogError<T>
impl<T: Clone> Clone for BucketLogError<T>
Source§fn clone(&self) -> BucketLogError<T>
fn clone(&self) -> BucketLogError<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for BucketLogError<T>
impl<T: Debug> Debug for BucketLogError<T>
Source§impl<T> Display for BucketLogError<T>where
T: Display,
impl<T> Display for BucketLogError<T>where
T: Display,
Source§impl<T> Error for BucketLogError<T>
impl<T> Error for BucketLogError<T>
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<T> From<T> for BucketLogError<T>
impl<T> From<T> for BucketLogError<T>
Source§impl<T: PartialEq> PartialEq for BucketLogError<T>
impl<T: PartialEq> PartialEq for BucketLogError<T>
impl<T: Eq> Eq for BucketLogError<T>
impl<T> StructuralPartialEq for BucketLogError<T>
Auto Trait Implementations§
impl<T> Freeze for BucketLogError<T>where
T: Freeze,
impl<T> RefUnwindSafe for BucketLogError<T>where
T: RefUnwindSafe,
impl<T> Send for BucketLogError<T>where
T: Send,
impl<T> Sync for BucketLogError<T>where
T: Sync,
impl<T> Unpin for BucketLogError<T>where
T: Unpin,
impl<T> UnwindSafe for BucketLogError<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
Source§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
Source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.