Struct hooks::EffectOnce

source ·
pub struct EffectOnce<E: EffectForNoneDependency> { /* private fields */ }

Implementations

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more
The meaning of the return value is: Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

A shortcut to call Hook::use_hook on Unpin hooks.
A shortcut to call [Hook::poll_next_update] on Unpin hooks.
Get a future which polls [Hook::poll_next_update].

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.