Struct firestorm_core::Event
source · [−]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 RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more