pub enum CreateEntryError<StoreError, ProducerError, AuthorisationTokenError> {
StoreError(StoreError),
IncorrectPayloadLength,
ProducerError(ProducerError),
AuthorisationTokenError(AuthorisationTokenError),
}Expand description
The errors that can be encountered when creating an entry (from a producer emitting the payload).
Variants§
StoreError(StoreError)
The store implementation encountered an internal error.
IncorrectPayloadLength
The payload producer produced a different number of bytes than the claimed length.
ProducerError(ProducerError)
The payload producer emitted an error.
AuthorisationTokenError(AuthorisationTokenError)
Could not create an authorisation token for the created entry.
Trait Implementations§
Source§impl<StoreError: Clone, ProducerError: Clone, AuthorisationTokenError: Clone> Clone for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError: Clone, ProducerError: Clone, AuthorisationTokenError: Clone> Clone for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
Source§fn clone(
&self,
) -> CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
fn clone( &self, ) -> CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
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<StoreError: Debug, ProducerError: Debug, AuthorisationTokenError: Debug> Debug for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError: Debug, ProducerError: Debug, AuthorisationTokenError: Debug> Debug for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
Source§impl<StoreError: Hash, ProducerError: Hash, AuthorisationTokenError: Hash> Hash for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError: Hash, ProducerError: Hash, AuthorisationTokenError: Hash> Hash for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
Source§impl<StoreError: Ord, ProducerError: Ord, AuthorisationTokenError: Ord> Ord for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError: Ord, ProducerError: Ord, AuthorisationTokenError: Ord> Ord for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
Source§fn cmp(
&self,
other: &CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>,
) -> Ordering
fn cmp( &self, other: &CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>, ) -> 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<StoreError: PartialEq, ProducerError: PartialEq, AuthorisationTokenError: PartialEq> PartialEq for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError: PartialEq, ProducerError: PartialEq, AuthorisationTokenError: PartialEq> PartialEq for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
Source§fn eq(
&self,
other: &CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>,
) -> bool
fn eq( &self, other: &CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>, ) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<StoreError: PartialOrd, ProducerError: PartialOrd, AuthorisationTokenError: PartialOrd> PartialOrd for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError: PartialOrd, ProducerError: PartialOrd, AuthorisationTokenError: PartialOrd> PartialOrd for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError: Copy, ProducerError: Copy, AuthorisationTokenError: Copy> Copy for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError: Eq, ProducerError: Eq, AuthorisationTokenError: Eq> Eq for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError, ProducerError, AuthorisationTokenError> StructuralPartialEq for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
Auto Trait Implementations§
impl<StoreError, ProducerError, AuthorisationTokenError> Freeze for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError, ProducerError, AuthorisationTokenError> RefUnwindSafe for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>where
StoreError: RefUnwindSafe,
ProducerError: RefUnwindSafe,
AuthorisationTokenError: RefUnwindSafe,
impl<StoreError, ProducerError, AuthorisationTokenError> Send for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError, ProducerError, AuthorisationTokenError> Sync for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError, ProducerError, AuthorisationTokenError> Unpin for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
impl<StoreError, ProducerError, AuthorisationTokenError> UnwindSafe for CreateEntryError<StoreError, ProducerError, AuthorisationTokenError>
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