pub enum IngestError {
InvalidOperation(OperationError),
MissingHeaderExtension(String),
StoreError(String),
MaxAttemptsReached(u64),
}Expand description
Errors which can occur due to invalid operations or critical storage failures.
Variants§
InvalidOperation(OperationError)
Operation can not be authenticated, has broken log- or payload integrity or doesn’t follow the p2panda specification.
MissingHeaderExtension(String)
Header did not contain the extensions required by the p2panda specification.
StoreError(String)
Critical storage failure occurred. This is usually a reason to panic.
MaxAttemptsReached(u64)
Some implementations might optimistically retry to ingest operations which arrived out-of-order. This error comes up when all given attempts have been exhausted.
Trait Implementations§
Source§impl Clone for IngestError
impl Clone for IngestError
Source§fn clone(&self) -> IngestError
fn clone(&self) -> IngestError
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 Debug for IngestError
impl Debug for IngestError
Source§impl Display for IngestError
impl Display for IngestError
Source§impl Error for IngestError
impl Error for IngestError
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()
Auto Trait Implementations§
impl Freeze for IngestError
impl RefUnwindSafe for IngestError
impl Send for IngestError
impl Sync for IngestError
impl Unpin for IngestError
impl UnwindSafe for IngestError
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