pub enum Error<T> {
    SendError(ErrorType<T>),
    TrySendError(ErrorType<T>),
    SendTimeoutError(ErrorType<T>),
    RecvResultError,
}

Variants§

§

SendError(ErrorType<T>)

§

TrySendError(ErrorType<T>)

§

SendTimeoutError(ErrorType<T>)

§

RecvResultError

Implementations§

source§

impl<T> Error<T>

source

pub fn is_full(&self) -> bool

source

pub fn is_closed(&self) -> bool

source

pub fn is_timeout(&self) -> bool

Trait Implementations§

source§

impl<T: Debug> Debug for Error<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Display for Error<T>

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Error for Error<T>
where Self: Debug + Display,

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl<T> From<SendError> for Error<T>

source§

fn from(e: SendError) -> Self

Converts to this type from the input type.
source§

impl<T> From<TrySendError<T>> for Error<T>

source§

fn from(e: TrySendError<T>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Error<T>
where T: RefUnwindSafe,

§

impl<T> Send for Error<T>
where T: Send,

§

impl<T> Sync for Error<T>
where T: Sync,

§

impl<T> Unpin for Error<T>
where T: Unpin,

§

impl<T> UnwindSafe for Error<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArcExt for T
where T: ?Sized,

§

fn arc(self) -> Arc<Self>
where Self: Sized,

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> HashExt for T
where T: ?Sized,

§

fn hash_value(self, h: u64) -> HashWrapper<Self>
where Self: Sized,

§

fn hash_empty(self) -> EmptyHashWrapper<Self>
where Self: Sized,

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> MutexExt for T
where T: ?Sized,

§

fn mutex(self) -> Mutex<RawMutex, Self>
where Self: Sized,

§

impl<T> OrdExt for T
where T: ?Sized,

§

fn eq_ord(self) -> EqOrdWrapper<Self>
where Self: Sized,

§

fn neq_ord(self) -> NeqOrdWrapper<Self>
where Self: Sized,

§

impl<T> OrdHashExt for T
where T: ?Sized,

§

fn neq_ord_hash(self, h: u64) -> NeqOrdHashWrapper<Self>
where Self: Sized,

§

fn neq_ord_empty(self) -> NeqOrdEmptyHashWrapper<Self>
where Self: Sized,

source§

impl<T> QueueExt for T
where T: ?Sized,

source§

fn queue_stream<Item, F>(self, f: F) -> QueueStream<Self, Item, F>
where Self: Sized + Unpin, F: Fn(Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<Item>>,

source§

fn queue_sender<Item, F, R>(self, f: F) -> QueueSender<Self, Item, F, R>
where Self: Sized + Waker, F: Fn(&mut Self, Action<Item>) -> Reply<R>,

source§

fn queue_channel<Item, F1, R, F2>( self, f1: F1, f2: F2 ) -> (QueueSender<QueueStream<Self, Item, F2>, Item, F1, R>, QueueStream<Self, Item, F2>)
where Self: Sized + Unpin + Clone, F1: Fn(&mut QueueStream<Self, Item, F2>, Action<Item>) -> Reply<R>, F2: Fn(Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<Item>> + Clone + Unpin,

§

impl<T> RwLockExt for T
where T: ?Sized,

§

fn rwlock(self) -> RwLock<RawRwLock, Self>
where Self: Sized,

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.