Enum MpscTake
pub enum MpscTake {
Ready(Runnable),
Empty,
WouldBlock,
Busy,
Closed,
}Expand description
一次单项非等待获取的结果;任何失败分类都不携带另一份任务(Task)。
Variants§
Ready(Runnable)
安全交出原Runnable;任务(Task)身份、地址和线程归属保持。
Empty
本次没有业务原值可取,不证明运行时(runtime)空闲或关闭完成。
WouldBlock
本次未取到任务,且发布尚未完成,或来源计数仍包含未结清的责任,例如清理。
Busy
本次没有取得唯一Consumer;不等待其它消费者(consumer)。
Closed
普通获取入口已停用;剩余来源责任仍按管理路径完成。
Auto Trait Implementations§
impl !RefUnwindSafe for MpscTake
impl !UnwindSafe for MpscTake
impl Forget for MpscTake
impl Freeze for MpscTake
impl Move for MpscTake
impl Send for MpscTake
impl Sync for MpscTake
impl Unpin for MpscTake
impl UnsafeUnpin for MpscTake
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