Enum BatchAttempt
pub enum BatchAttempt {
Ready(TaskBatch),
Empty,
WouldBlock,
Busy,
Closed,
}Expand description
一次获取结果,区分空、暂不可完成、同步权占用及已关闭。
Variants§
Ready(TaskBatch)
有限的当前批次;内部顺序不可擅改。
Empty
本次没有可取得任务,不是全局结束证明。
WouldBlock
本次没有取得任务,且来源尚有未结清的发布、清理或其它在途交接责任。 单凭此值无法确定具体是哪项责任在进行。
Busy
获取接入权被占用;不可无限自旋等待。
Closed
明确关闭;是否还有应清理的任务须按实现契约处理。
Auto Trait Implementations§
impl !RefUnwindSafe for BatchAttempt
impl !UnwindSafe for BatchAttempt
impl Forget for BatchAttempt
impl Freeze for BatchAttempt
impl Move for BatchAttempt
impl Send for BatchAttempt
impl Sync for BatchAttempt
impl Unpin for BatchAttempt
impl UnsafeUnpin for BatchAttempt
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