Skip to main content

MpscTake

Enum MpscTake 

pub enum MpscTake {
    Ready(Runnable),
    Empty,
    WouldBlock,
    Busy,
    Closed,
}
Expand description

一次单项非等待获取的结果;任何失败分类都不携带另一份任务(Task)。

Variants§

§

Ready(Runnable)

安全交出原Runnable;任务(Task)身份、地址和线程归属保持。

§

Empty

本次没有业务原值可取,不证明运行时(runtime)空闲或关闭完成。

§

WouldBlock

接收登记或原生链接(link)发布尚未完成,本次不能取出。

§

Busy

本次没有取得唯一Consumer;不等待其它消费者(consumer)。

§

Closed

普通获取入口已停用;剩余来源责任仍按管理路径完成。

Auto Trait Implementations§

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
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.

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.

Source§

impl<T> OpaqueAttachment for T
where T: Send + Sync + 'static,

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.