pub struct Event {
pub time: TimeSample,
pub data: EventData,
}
Expand description
A tiny record of a method call which when played back can construct a profiling state. Several representations were considered, the most elaborate of which would write variable length data to the event stream. Ideally, data would be an &’static EventData to avoid writing more data than is necessary but limitations in the Rust compiler prevent this.
Fields§
§time: TimeSample
§data: EventData
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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