pub trait HookPollNextUpdateExt: HookPollNextUpdate {
// Provided methods
fn poll_next_update(&mut self, cx: &mut Context<'_>) -> Poll<bool>
where Self: Unpin { ... }
fn next_update(&mut self) -> NextUpdate<'_, Self> ⓘ
where Self: Unpin { ... }
}
Expand description
Extend HookPollNextUpdate
with convenient methods.
Provided Methods§
Sourcefn poll_next_update(&mut self, cx: &mut Context<'_>) -> Poll<bool>where
Self: Unpin,
fn poll_next_update(&mut self, cx: &mut Context<'_>) -> Poll<bool>where
Self: Unpin,
A shortcut to call HookPollNextUpdate::poll_next_update
on Unpin hooks.
Sourcefn next_update(&mut self) -> NextUpdate<'_, Self> ⓘwhere
Self: Unpin,
fn next_update(&mut self) -> NextUpdate<'_, Self> ⓘwhere
Self: Unpin,
Get a future which polls HookPollNextUpdate::poll_next_update
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.