Enum DrainError
pub enum DrainError<B, A> {
Buffer(B),
Alias(A),
}Expand description
Error returned by Client::poll_transmit. The session keeps the
packets not yet written for the next call.
Variants§
Buffer(B)
The output buffer cannot take the next packet.
Alias(A)
The outbound alias table could not store an alias.
Trait Implementations§
§impl<B: Clone, A: Clone> Clone for DrainError<B, A>
impl<B: Clone, A: Clone> Clone for DrainError<B, A>
§fn clone(&self) -> DrainError<B, A>
fn clone(&self) -> DrainError<B, A>
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<B: Copy, A: Copy> Copy for DrainError<B, A>
§impl<B: Debug, A: Debug> Debug for DrainError<B, A>
impl<B: Debug, A: Debug> Debug for DrainError<B, A>
§impl<B: Display, A: Display> Display for DrainError<B, A>
impl<B: Display, A: Display> Display for DrainError<B, A>
impl<B: Eq, A: Eq> Eq for DrainError<B, A>
§impl<B: Error + 'static, A: Error + 'static> Error for DrainError<B, A>
impl<B: Error + 'static, A: Error + 'static> Error for DrainError<B, A>
§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 From<DrainError<TryReserveError, TryReserveError>> for Error
Available on crate feature tokio only.
impl From<DrainError<TryReserveError, TryReserveError>> for Error
Available on crate feature
tokio only.§fn from(e: DrainError<TryReserveError, TryReserveError>) -> Self
fn from(e: DrainError<TryReserveError, TryReserveError>) -> Self
Converts to this type from the input type.
§impl<B: PartialEq, A: PartialEq> PartialEq for DrainError<B, A>
impl<B: PartialEq, A: PartialEq> PartialEq for DrainError<B, A>
impl<B: PartialEq, A: PartialEq> StructuralPartialEq for DrainError<B, A>
Auto Trait Implementations§
impl<B, A> Freeze for DrainError<B, A>
impl<B, A> RefUnwindSafe for DrainError<B, A>where
B: RefUnwindSafe,
A: RefUnwindSafe,
impl<B, A> Send for DrainError<B, A>
impl<B, A> Sync for DrainError<B, A>
impl<B, A> Unpin for DrainError<B, A>
impl<B, A> UnsafeUnpin for DrainError<B, A>where
B: UnsafeUnpin,
A: UnsafeUnpin,
impl<B, A> UnwindSafe for DrainError<B, A>where
B: UnwindSafe,
A: 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