Enum ExecutorEvent
pub enum ExecutorEvent {
BeforePoll,
AfterRun(RunOutcome),
}Expand description
正常业务选择期间的同步通知(notification),不授予控制或执行持有的所有权(ownership)。 延后、取消、错误或恐慌(panic)可使BeforePoll没有配对AfterRun,不承诺所有路径都发送两次通知。
Variants§
BeforePoll
已结束容器借用、尚未调用控制钩子(hook);回调后仍须重查取消与关闭。
AfterRun(RunOutcome)
仅原Runnable::run真实返回RunOutcome后通知,不将RunError、延后或直接退出伪装为该结果。
Trait Implementations§
§impl Clone for ExecutorEvent
impl Clone for ExecutorEvent
impl Copy for ExecutorEvent
§impl Debug for ExecutorEvent
impl Debug for ExecutorEvent
impl Eq for ExecutorEvent
§impl PartialEq for ExecutorEvent
impl PartialEq for ExecutorEvent
impl StructuralPartialEq for ExecutorEvent
Auto Trait Implementations§
impl Forget for ExecutorEvent
impl Freeze for ExecutorEvent
impl Move for ExecutorEvent
impl RefUnwindSafe for ExecutorEvent
impl Send for ExecutorEvent
impl Sync for ExecutorEvent
impl Unpin for ExecutorEvent
impl UnsafeUnpin for ExecutorEvent
impl UnwindSafe for ExecutorEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.