pub struct WithPerformanceMonitoring;
Expand description
HOC that adds performance monitoring
Trait Implementations§
Source§impl<T: Component> HigherOrderComponent<T> for WithPerformanceMonitoring
impl<T: Component> HigherOrderComponent<T> for WithPerformanceMonitoring
Source§type HOCProps = <T as Component>::Props
type HOCProps = <T as Component>::Props
The props type for the HOC itself (should match T::Props)
Source§fn transform_props(hoc_props: &Self::HOCProps) -> T::Props
fn transform_props(hoc_props: &Self::HOCProps) -> T::Props
Transform HOC props into wrapped component props
Source§fn on_wrapped_mount(
component: &mut T,
_context: &MountContext,
_hoc_props: &Self::HOCProps,
) -> Result<(), ComponentError>
fn on_wrapped_mount( component: &mut T, _context: &MountContext, _hoc_props: &Self::HOCProps, ) -> Result<(), ComponentError>
Optional: intercept lifecycle events
Source§fn on_wrapped_update(
component: &mut T,
changes: &StateChanges,
_hoc_props: &Self::HOCProps,
) -> Result<(), ComponentError>
fn on_wrapped_update( component: &mut T, changes: &StateChanges, _hoc_props: &Self::HOCProps, ) -> Result<(), ComponentError>
Optional: intercept state changes
Source§fn enhance_component(
component: &mut T,
hoc_props: &Self::HOCProps,
) -> Result<(), ComponentError>
fn enhance_component( component: &mut T, hoc_props: &Self::HOCProps, ) -> Result<(), ComponentError>
Optional: modify the wrapped component after creation
Source§fn on_wrapped_unmount(
component: &mut T,
context: &UnmountContext,
hoc_props: &Self::HOCProps,
) -> Result<(), ComponentError>
fn on_wrapped_unmount( component: &mut T, context: &UnmountContext, hoc_props: &Self::HOCProps, ) -> Result<(), ComponentError>
Optional: intercept unmount
Auto Trait Implementations§
impl Freeze for WithPerformanceMonitoring
impl RefUnwindSafe for WithPerformanceMonitoring
impl Send for WithPerformanceMonitoring
impl Sync for WithPerformanceMonitoring
impl Unpin for WithPerformanceMonitoring
impl UnwindSafe for WithPerformanceMonitoring
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