Trait hooks_core::HookExt

source ·
pub trait HookExt<Args>: Hook<Args> {
Show 13 methods fn use_hook(&mut self, args: Args) -> <Self as HookLifetime<'_, Args>>::Value
    where
        Self: Unpin
, { ... } fn run_by_runner_with_get_args<'run, R: RunHook<&'run mut Self, G, Args>, G: GetArgsForHook<R, &'run mut Self, Args>>(
        &'run mut self,
        runner: R,
        get_args: G
    ) -> R::RunningHook
    where
        Self: Unpin + 'run
, { ... } fn run_by_runner_with_clone_args<'run, R: RunHook<&'run mut Self, CloneArgsForHook<Args>, Args>>(
        &'run mut self,
        runner: R,
        args: Args
    ) -> R::RunningHook
    where
        Self: Unpin + 'run,
        Args: Clone
, { ... } fn run_by_runner_with_default_args<'run, R: RunHook<&'run mut Self, DefaultArgsForHook, Args>>(
        &'run mut self,
        runner: R
    ) -> R::RunningHook
    where
        Self: Unpin + 'run,
        Args: Default
, { ... } fn run_with_get_args<'run, G: GetArgsForHook<Runner, &'run mut Self, Args>>(
        &'run mut self,
        get_args: G
    ) -> RunningHook<&'run mut Self, G, Args>
    where
        Self: Unpin + 'run
, { ... } fn run_with_clone_args<'run>(
        &'run mut self,
        args: Args
    ) -> RunningHook<&'run mut Self, CloneArgsForHook<Args>, Args>
    where
        Self: Unpin + 'run,
        Args: Clone
, { ... } fn run_with_default_args<'run>(
        &'run mut self
    ) -> RunningHook<&'run mut Self, DefaultArgsForHook, Args>
    where
        Self: Unpin + 'run,
        Args: Default
, { ... } fn into_run_by_runner_with_get_args<R: RunHook<Self, G, Args>, G: GetArgsForHook<R, Self, Args>>(
        self,
        runner: R,
        get_args: G
    ) -> R::RunningHook
    where
        Self: Sized
, { ... } fn into_run_by_runner_with_clone_args<R: RunHook<Self, CloneArgsForHook<Args>, Args>>(
        self,
        runner: R,
        args: Args
    ) -> R::RunningHook
    where
        Self: Sized,
        Args: Clone
, { ... } fn into_run_by_runner_with_default_args<R: RunHook<Self, DefaultArgsForHook, Args>>(
        self,
        runner: R
    ) -> R::RunningHook
    where
        Self: Sized,
        Args: Default
, { ... } fn into_run_with_get_args<G: GetArgsForHook<Runner, Self, Args>>(
        self,
        get_args: G
    ) -> RunningHook<Self, G, Args>
    where
        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
, { ... }
}

Provided Methods

A shortcut to call Hook::use_hook on Unpin hooks.

Implementors