pub enum PayloadAppendError<PayloadSourceError, OE> {
NoSuchEntry,
WrongEntry,
TooManyBytes,
DigestMismatch,
SourceError {
source_error: PayloadSourceError,
total_length_now_available: u64,
},
OperationError(OE),
}
Expand description
Returned when a payload fails to be appended into the Store
.
Variants§
NoSuchEntry
No entry for the given subspace and path exists in this store.
WrongEntry
The operation supplied an expected payload_digest, but it did not match the digest of the entry.
TooManyBytes
The payload source produced more bytes than were expected for this payload.
DigestMismatch
The completed payload’s digest is not what was expected.
SourceError
The source that provided the payload bytes emitted an error.
Fields
§
source_error: PayloadSourceError
OperationError(OE)
Something specific to this store implementation went wrong.
Trait Implementations§
Source§impl<PayloadSourceError: Clone, OE: Clone> Clone for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError: Clone, OE: Clone> Clone for PayloadAppendError<PayloadSourceError, OE>
Source§fn clone(&self) -> PayloadAppendError<PayloadSourceError, OE>
fn clone(&self) -> PayloadAppendError<PayloadSourceError, OE>
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<PayloadSourceError: Debug, OE: Debug> Debug for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError: Debug, OE: Debug> Debug for PayloadAppendError<PayloadSourceError, OE>
Source§impl<PayloadSourceError: Display + Error, OE: Display + Error> Display for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError: Display + Error, OE: Display + Error> Display for PayloadAppendError<PayloadSourceError, OE>
Source§impl<PayloadSourceError: Display + Error, OE: Display + Error> Error for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError: Display + Error, OE: Display + Error> Error for PayloadAppendError<PayloadSourceError, OE>
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<PayloadSourceError: Ord, OE: Ord> Ord for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError: Ord, OE: Ord> Ord for PayloadAppendError<PayloadSourceError, OE>
Source§fn cmp(&self, other: &PayloadAppendError<PayloadSourceError, OE>) -> Ordering
fn cmp(&self, other: &PayloadAppendError<PayloadSourceError, OE>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<PayloadSourceError: PartialEq, OE: PartialEq> PartialEq for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError: PartialEq, OE: PartialEq> PartialEq for PayloadAppendError<PayloadSourceError, OE>
Source§fn eq(&self, other: &PayloadAppendError<PayloadSourceError, OE>) -> bool
fn eq(&self, other: &PayloadAppendError<PayloadSourceError, OE>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<PayloadSourceError: PartialOrd, OE: PartialOrd> PartialOrd for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError: PartialOrd, OE: PartialOrd> PartialOrd for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError: Copy, OE: Copy> Copy for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError: Eq, OE: Eq> Eq for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError, OE> StructuralPartialEq for PayloadAppendError<PayloadSourceError, OE>
Auto Trait Implementations§
impl<PayloadSourceError, OE> Freeze for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError, OE> RefUnwindSafe for PayloadAppendError<PayloadSourceError, OE>where
PayloadSourceError: RefUnwindSafe,
OE: RefUnwindSafe,
impl<PayloadSourceError, OE> Send for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError, OE> Sync for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError, OE> Unpin for PayloadAppendError<PayloadSourceError, OE>
impl<PayloadSourceError, OE> UnwindSafe for PayloadAppendError<PayloadSourceError, OE>where
PayloadSourceError: UnwindSafe,
OE: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more