Struct TraceEvent
#[non_exhaustive]pub struct TraceEvent {
pub capture: u64,
pub at: Duration,
pub thread: ThreadId,
pub what: Traced,
}Expand description
One thing the bus did, as a sink receives it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.capture: u64Its number: greater than every number the same bus gave before, on any thread. Numbers are not contiguous for one sink when it started observing after others.
at: DurationWhen, since the bus was made (a monotonic clock).
thread: ThreadIdThe thread that made it.
what: TracedWhat happened.
Trait Implementations§
§impl Clone for TraceEvent
impl Clone for TraceEvent
§fn clone(&self) -> TraceEvent
fn clone(&self) -> TraceEvent
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 TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEvent
impl UnwindSafe for TraceEvent
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