Crate hooks_core
source ·Modules§
Macros§
- Use this macro to get
HookValue::Value
. - This macro should only be used in
hook_fn
or#[hook]
. - Write hook fn without any proc-macro.
- Easily impl traits.
Structs§
- A future which polls
HookPollNextUpdate::poll_next_update
. SeeHookExt::next_update
. - A future which outputs the next value of the hook. See
HookExt::next_value
. - A stream of hook values. See
HookExt::into_values
andHookExt::values
Traits§
- Defines how to use a hook (get value from the hook).
- Extend
Hook
with convenient methods. - Defines reactivity of a hook.
- Extend
HookPollNextUpdate
with convenient methods. - Defines how to cleanup a hook.
- A helper trait to define lifetime generic associated types (lifetime-GAT) for
Hook
. NonLendingHook
is a subset ofHook
.Value
ofNonLendingHook
is not generic, thus not borrowing from the hook. In other words,NonLendingHook
doesn’t lend to itsValue
.