Struct webui::HookUpdater
source · [−]pub struct HookUpdater { /* private fields */ }Expand description
The HookUpdater provides a convenient interface for hooking into the lifecycle of
the underlying Yew Component that backs the function component.
Two interfaces are provided - callback and post_render.
callbackallows the creation of regular yew callbacks on the host component.post_renderallows the creation of events that happen after a render is complete.
See use_effect and use_context
for more details on how to use the hook updater to provide function components
the necessary callbacks to update the underlying state.
Implementations
Trait Implementations
sourceimpl Clone for HookUpdater
impl Clone for HookUpdater
sourcefn clone(&self) -> HookUpdater
fn clone(&self) -> HookUpdater
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl !RefUnwindSafe for HookUpdater
impl !Send for HookUpdater
impl !Sync for HookUpdater
impl Unpin for HookUpdater
impl !UnwindSafe for HookUpdater
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<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
sourcefn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.sourceimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
sourcefn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.