Enum HandleError
pub enum HandleError<A, S> {
Client(ClientError),
Alias(A),
Session(S),
}Expand description
Error from Client::handle_packet.
Variants§
Client(ClientError)
The client rejected the packet.
Alias(A)
The inbound alias table could not store a mapping.
The packet was not acknowledged. Close the connection.
Session(S)
The session has no room for the state the packet creates.
The packet was not acknowledged and the session is unchanged. Close the connection. The server sends the packet again on the next one.
Trait Implementations§
§impl<A: Clone, S: Clone> Clone for HandleError<A, S>
impl<A: Clone, S: Clone> Clone for HandleError<A, S>
§fn clone(&self) -> HandleError<A, S>
fn clone(&self) -> HandleError<A, S>
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<A: Copy, S: Copy> Copy for HandleError<A, S>
§impl<A: Debug, S: Debug> Debug for HandleError<A, S>
impl<A: Debug, S: Debug> Debug for HandleError<A, S>
§impl<A: Display, S: Display> Display for HandleError<A, S>
impl<A: Display, S: Display> Display for HandleError<A, S>
impl<A: Eq, S: Eq> Eq for HandleError<A, S>
§impl<A: Error + 'static, S: Error + 'static> Error for HandleError<A, S>
impl<A: Error + 'static, S: Error + 'static> Error for HandleError<A, S>
§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<A, S> From<ClientError> for HandleError<A, S>
impl<A, S> From<ClientError> for HandleError<A, S>
§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<A: PartialEq, S: PartialEq> PartialEq for HandleError<A, S>
impl<A: PartialEq, S: PartialEq> PartialEq for HandleError<A, S>
impl<A: PartialEq, S: PartialEq> StructuralPartialEq for HandleError<A, S>
Auto Trait Implementations§
impl<A, S> Freeze for HandleError<A, S>
impl<A, S> RefUnwindSafe for HandleError<A, S>where
A: RefUnwindSafe,
S: RefUnwindSafe,
impl<A, S> Send for HandleError<A, S>
impl<A, S> Sync for HandleError<A, S>
impl<A, S> Unpin for HandleError<A, S>
impl<A, S> UnsafeUnpin for HandleError<A, S>where
A: UnsafeUnpin,
S: UnsafeUnpin,
impl<A, S> UnwindSafe for HandleError<A, S>where
A: UnwindSafe,
S: 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