pub struct FrameMetadata {
pub frame_number: u64,
pub render_time: Duration,
pub event_count: u32,
pub model_hash: Option<u64>,
}Expand description
Metadata attached to each recorded frame.
Fields§
§frame_number: u64Frame sequence number.
render_time: DurationTime taken to render this frame.
event_count: u32Number of events that triggered this frame.
model_hash: Option<u64>Optional model state hash for identifying state.
Implementations§
Source§impl FrameMetadata
impl FrameMetadata
Sourcepub fn new(frame_number: u64, render_time: Duration) -> Self
pub fn new(frame_number: u64, render_time: Duration) -> Self
Create metadata with required fields.
Sourcepub fn with_events(self, count: u32) -> Self
pub fn with_events(self, count: u32) -> Self
Set event count.
Sourcepub fn with_model_hash(self, hash: u64) -> Self
pub fn with_model_hash(self, hash: u64) -> Self
Set model hash.
Trait Implementations§
Source§impl Clone for FrameMetadata
impl Clone for FrameMetadata
Source§fn clone(&self) -> FrameMetadata
fn clone(&self) -> FrameMetadata
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 FrameMetadata
impl RefUnwindSafe for FrameMetadata
impl Send for FrameMetadata
impl Sync for FrameMetadata
impl Unpin for FrameMetadata
impl UnsafeUnpin for FrameMetadata
impl UnwindSafe for FrameMetadata
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