Struct NoHooks
pub struct NoHooks;Expand description
默认无操作接收者;静态分发下由优化器消去空回调,不强制高级观测。
Trait Implementations§
impl Copy for NoHooks
§impl ExecutorHooks for NoHooks
impl ExecutorHooks for NoHooks
§fn on_event(&mut self, event: ExecutorEvent, task: &TaskInfo<'_>)
fn on_event(&mut self, event: ExecutorEvent, task: &TaskInfo<'_>)
同步非阻塞通知,无返回控制结果;不能通过此签名承诺任意实现绝对零延迟。
§fn before_poll(&mut self, task: &TaskInfo<'_>) -> TaskAction
fn before_poll(&mut self, task: &TaskInfo<'_>) -> TaskAction
同步控制钩子;返回前本执行器不越过此位置。不得等待自身必须推进的任务或嵌套block_on。
不得据旧快照覆盖期间发生的取消/关闭;Defer后仍服从原归属与下次选择。
Auto Trait Implementations§
impl Forget for NoHooks
impl Freeze for NoHooks
impl Move for NoHooks
impl RefUnwindSafe for NoHooks
impl Send for NoHooks
impl Sync for NoHooks
impl Unpin for NoHooks
impl UnsafeUnpin for NoHooks
impl UnwindSafe for NoHooks
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