pub struct RenderEvent {
pub component: String,
pub parent: Option<String>,
pub duration: Duration,
pub timestamp: Instant,
pub reason: RenderReason,
pub depth: usize,
}Expand description
A single render event
Fields§
§component: StringComponent name
parent: Option<String>Parent component (for hierarchy)
duration: DurationRender duration
timestamp: InstantTimestamp when render started
reason: RenderReasonRender reason
depth: usizeDepth in component tree
Implementations§
Source§impl RenderEvent
impl RenderEvent
Sourcepub fn reason(self, reason: RenderReason) -> Self
pub fn reason(self, reason: RenderReason) -> Self
Set render reason
Trait Implementations§
Source§impl Clone for RenderEvent
impl Clone for RenderEvent
Source§fn clone(&self) -> RenderEvent
fn clone(&self) -> RenderEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RenderEvent
impl RefUnwindSafe for RenderEvent
impl Send for RenderEvent
impl Sync for RenderEvent
impl Unpin for RenderEvent
impl UnsafeUnpin for RenderEvent
impl UnwindSafe for RenderEvent
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