Skip to main content

TimerTake

Enum TimerTake 

pub enum TimerTake<T> {
    Ready(T),
    Empty,
    WouldBlock,
    Busy,
    Closed,
}
Expand description

一次到期取出的正常分类;异常使用外层错误。

Variants§

§

Ready(T)

已交出原值及责任;用于到期批次(DueBatch)时必须非空。 单项原值(Item)不受此限制,即使其自身是空向量(Vec)等容器也可以交付。

§

Empty

本次无可交付内容,不证明时间追赶完成或允许关闭。

§

WouldBlock

发布/必要准备未完成;全部到期取出尚不能证明完整时也使用此分类。

§

Busy

本次访问权被占用,不无限自旋(spin)。

§

Closed

此取出出口已结束,整体来源仍可能在关闭处理中。

Auto Trait Implementations§

§

impl<T> Forget for TimerTake<T>

§

impl<T> Freeze for TimerTake<T>
where T: Freeze,

§

impl<T> Move for TimerTake<T>

§

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

§

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

§

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

§

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

§

impl<T> UnsafeUnpin for TimerTake<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for TimerTake<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
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.