Trait Implementations
sourceimpl<Dep: PartialEq, E: EffectFor<Dep>> Hook<(E, Dep)> for Effect<Dep, E>
impl<Dep: PartialEq, E: EffectFor<Dep>> Hook<(E, Dep)> for Effect<Dep, E>
fn use_hook<'hook>(
self: Pin<&'hook mut Self>,
(effect, dep): (E, Dep)
) -> <Self as HookLifetime<'hook, (E, Dep)>>::Valuewhere
Self: 'hook,
sourceimpl<Dep: PartialEq, E: EffectFor<Dep>> HookBounds for Effect<Dep, E>
impl<Dep: PartialEq, E: EffectFor<Dep>> HookBounds for Effect<Dep, E>
sourceimpl<'hook, Dep: PartialEq, E: EffectFor<Dep>> HookLifetime<'hook, (E, Dep), &'hook <Effect<Dep, E> as HookBounds>::Bounds> for Effect<Dep, E>
impl<'hook, Dep: PartialEq, E: EffectFor<Dep>> HookLifetime<'hook, (E, Dep), &'hook <Effect<Dep, E> as HookBounds>::Bounds> for Effect<Dep, E>
sourceimpl<Dep: PartialEq, E: EffectFor<Dep>> HookPollNextUpdate for Effect<Dep, E>
impl<Dep: PartialEq, E: EffectFor<Dep>> HookPollNextUpdate for Effect<Dep, E>
impl<Dep: PartialEq, E: EffectFor<Dep>> Unpin for Effect<Dep, E>
Auto Trait Implementations
impl<Dep, E> RefUnwindSafe for Effect<Dep, E>where
Dep: RefUnwindSafe,
E: RefUnwindSafe,
<E as EffectFor<Dep>>::Cleanup: RefUnwindSafe,
impl<Dep, E> Send for Effect<Dep, E>where
Dep: Send,
E: Send,
<E as EffectFor<Dep>>::Cleanup: Send,
impl<Dep, E> Sync for Effect<Dep, E>where
Dep: Sync,
E: Sync,
<E as EffectFor<Dep>>::Cleanup: Sync,
impl<Dep, E> UnwindSafe for Effect<Dep, E>where
Dep: UnwindSafe,
E: UnwindSafe,
<E as EffectFor<Dep>>::Cleanup: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Args, H> HookExt<Args> for Hwhere
H: Hook<Args> + ?Sized,
impl<Args, H> HookExt<Args> for Hwhere
H: Hook<Args> + ?Sized,
sourcefn use_hook(&mut self, args: Args) -> Self::Valuewhere
Self: Unpin,
fn use_hook(&mut self, args: Args) -> Self::Valuewhere
Self: Unpin,
A shortcut to call
Hook::use_hook on Unpin hooks.fn run_by_runner_with_get_args<'run, R, G>(
&'run mut self,
runner: R,
get_args: G
) -> <R as RunHook<&'run mut Self, G, Args>>::RunningHookwhere
R: RunHook<&'run mut Self, G, Args>,
G: GetArgsForHook<R, &'run mut Self, Args>,
Self: 'run + Unpin,
fn run_by_runner_with_clone_args<'run, R>(
&'run mut self,
runner: R,
args: Args
) -> <R as RunHook<&'run mut Self, CloneArgsForHook<Args>, Args>>::RunningHookwhere
R: RunHook<&'run mut Self, CloneArgsForHook<Args>, Args>,
Self: 'run + Unpin,
Args: Clone,
fn run_by_runner_with_default_args<'run, R>(
&'run mut self,
runner: R
) -> <R as RunHook<&'run mut Self, DefaultArgsForHook, Args>>::RunningHookwhere
R: RunHook<&'run mut Self, DefaultArgsForHook, Args>,
Self: 'run + Unpin,
Args: Default,
fn run_with_get_args<'run, G>(
&'run mut self,
get_args: G
) -> RunningHook<&'run mut Self, G, Args>where
G: GetArgsForHook<Runner, &'run mut Self, Args>,
Self: 'run + Unpin,
fn run_with_clone_args<'run>(
&'run mut self,
args: Args
) -> RunningHook<&'run mut Self, CloneArgsForHook<Args>, Args>where
Self: 'run + Unpin,
Args: Clone,
fn run_with_default_args<'run>(
&'run mut self
) -> RunningHook<&'run mut Self, DefaultArgsForHook, Args>where
Self: 'run + Unpin,
Args: Default,
fn into_run_by_runner_with_get_args<R, G>(
self,
runner: R,
get_args: G
) -> <R as RunHook<Self, G, Args>>::RunningHookwhere
R: RunHook<Self, G, Args>,
G: GetArgsForHook<R, Self, Args>,
Self: Sized,
fn into_run_by_runner_with_clone_args<R>(
self,
runner: R,
args: Args
) -> <R as RunHook<Self, CloneArgsForHook<Args>, Args>>::RunningHookwhere
R: RunHook<Self, CloneArgsForHook<Args>, Args>,
Self: Sized,
Args: Clone,
fn into_run_by_runner_with_default_args<R>(
self,
runner: R
) -> <R as RunHook<Self, DefaultArgsForHook, Args>>::RunningHookwhere
R: RunHook<Self, DefaultArgsForHook, Args>,
Self: Sized,
Args: Default,
fn into_run_with_get_args<G>(self, get_args: G) -> RunningHook<Self, G, Args>where
G: GetArgsForHook<Runner, Self, Args>,
Self: Sized,
fn into_run_with_clone_args(
self,
args: Args
) -> RunningHook<Self, CloneArgsForHook<Args>, Args>where
Self: Sized,
Args: Clone,
fn into_run_with_default_args(
self
) -> RunningHook<Self, DefaultArgsForHook, Args>where
Self: Sized,
Args: Default,
sourceimpl<H> HookPollNextUpdateExt for Hwhere
H: HookPollNextUpdate,
impl<H> HookPollNextUpdateExt for Hwhere
H: HookPollNextUpdate,
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 [
Hook::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 [
Hook::poll_next_update].