Enum Traced
#[non_exhaustive]pub enum Traced {
Emit {
point: &'static str,
kind: PointKind,
ask: Option<u64>,
queued: bool,
},
Emitted {
point: &'static str,
took: Duration,
ran: usize,
failures: usize,
refused: bool,
},
Heard {
point: &'static str,
listener: String,
owner: Option<String>,
took: Duration,
outcome: Outcome,
threaded: bool,
local: bool,
},
Asked {
point: &'static str,
ask: u64,
},
Drained {
point: &'static str,
ask: u64,
ran: Vec<String>,
failures: usize,
refused: bool,
},
}Expand description
What a TraceEvent reports.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Emit
An emit starts running its listeners on this thread: an alter or
collect emit, a drained ask (ask), or the local listeners an
emit on another thread queued for this one (queued).
Fields
§
queued: boolWhether it runs local listeners another thread’s emit queued
(Bus::run_pending).
Emitted
An emit ended (Traced::Emit before it, on the same thread).
Fields
Heard
One listener of an emit, run or passed on.
Fields
Asked
A request asked for the thread’s next drain.
Drained
An ask ran, by the thread’s drain.
Trait Implementations§
impl Eq for Traced
impl StructuralPartialEq for Traced
Auto Trait Implementations§
impl Freeze for Traced
impl RefUnwindSafe for Traced
impl Send for Traced
impl Sync for Traced
impl Unpin for Traced
impl UnsafeUnpin for Traced
impl UnwindSafe for Traced
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