Skip to main content

BatchAttempt

Enum BatchAttempt 

pub enum BatchAttempt {
    Ready(TaskBatch),
    Empty,
    WouldBlock,
    Busy,
    Closed,
}
Expand description

一次获取结果,区分空、暂不可完成、同步权占用及已关闭。

Variants§

§

Ready(TaskBatch)

有限的当前批次;内部顺序不可擅改。

§

Empty

本次没有可取得任务,不是全局结束证明。

§

WouldBlock

本次没有取得任务,且来源尚有未结清的发布、清理或其它在途交接责任。 单凭此值无法确定具体是哪项责任在进行。

§

Busy

获取接入权被占用;不可无限自旋等待。

§

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.