Enum StoreError
pub enum StoreError<E> {
Client(ClientError),
Session(E),
}Expand description
Error from a Client method that stores data in the
session.
Variants§
Client(ClientError)
The client refused the request.
Session(E)
The session has no room for the request. The session is unchanged.
Trait Implementations§
§impl<E: Clone> Clone for StoreError<E>
impl<E: Clone> Clone for StoreError<E>
§fn clone(&self) -> StoreError<E>
fn clone(&self) -> StoreError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<E: Copy> Copy for StoreError<E>
§impl<E: Debug> Debug for StoreError<E>
impl<E: Debug> Debug for StoreError<E>
§impl<E: Display> Display for StoreError<E>
impl<E: Display> Display for StoreError<E>
impl<E: Eq> Eq for StoreError<E>
§impl<E: Error + 'static> Error for StoreError<E>
impl<E: Error + 'static> Error for StoreError<E>
§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()
§impl<E> From<ClientError> for StoreError<E>
impl<E> From<ClientError> for StoreError<E>
§fn from(err: ClientError) -> Self
fn from(err: ClientError) -> Self
Converts to this type from the input type.
§impl<A, S> From<StoreError<S>> for HandleError<A, S>
impl<A, S> From<StoreError<S>> for HandleError<A, S>
§fn from(err: StoreError<S>) -> Self
fn from(err: StoreError<S>) -> Self
Converts to this type from the input type.
§impl From<StoreError<TryReserveError>> for Error
Available on crate feature tokio only.
impl From<StoreError<TryReserveError>> for Error
Available on crate feature
tokio only.§fn from(e: StoreError<TryReserveError>) -> Self
fn from(e: StoreError<TryReserveError>) -> Self
Converts to this type from the input type.
§impl<E> From<Unsupported> for StoreError<E>
impl<E> From<Unsupported> for StoreError<E>
§fn from(err: Unsupported) -> Self
fn from(err: Unsupported) -> Self
Converts to this type from the input type.
§impl<E: PartialEq> PartialEq for StoreError<E>
impl<E: PartialEq> PartialEq for StoreError<E>
impl<E: PartialEq> StructuralPartialEq for StoreError<E>
Auto Trait Implementations§
impl<E> Freeze for StoreError<E>where
E: Freeze,
impl<E> RefUnwindSafe for StoreError<E>where
E: RefUnwindSafe,
impl<E> Send for StoreError<E>where
E: Send,
impl<E> Sync for StoreError<E>where
E: Sync,
impl<E> Unpin for StoreError<E>where
E: Unpin,
impl<E> UnsafeUnpin for StoreError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for StoreError<E>where
E: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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