pub enum HookEvent<'a> {
BeforeMount {
name: &'a str,
},
Mount {
name: &'a str,
id: &'a str,
},
BeforeUpdate {
name: &'a str,
id: &'a str,
},
Update {
name: &'a str,
id: &'a str,
},
BeforeCall {
name: &'a str,
id: &'a str,
method: &'a str,
},
Call {
name: &'a str,
id: &'a str,
method: &'a str,
},
}Expand description
One step of a component’s life, borrowed for the length of the call that ran it.
Variants§
BeforeMount
Before a component’s mount runs, when its view has not rendered.
Mount
After a component mounted and rendered, with the instance ID the page embeds.
BeforeUpdate
Before an update applies its field changes.
Update
After an update rendered, before the response is written.
BeforeCall
Before one action runs, after the browser’s updates were applied.
Fields
Call
After one action ran, whether it succeeded or reported an error.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for HookEvent<'a>
impl<'a> Freeze for HookEvent<'a>
impl<'a> Move for HookEvent<'a>
impl<'a> RefUnwindSafe for HookEvent<'a>
impl<'a> Send for HookEvent<'a>
impl<'a> Sync for HookEvent<'a>
impl<'a> Unpin for HookEvent<'a>
impl<'a> UnsafeUnpin for HookEvent<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for HookEvent<'a>where
&'a str: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more