pub enum ProfileEntry<Start, Result> {
Register {
id: Id,
metadata: Option<&'static Metadata<'static>>,
parent: Option<Id>,
start: Start,
},
Publish {
id: Id,
result: Result,
},
}Expand description
Entry collected by Collector.
This is pure data transfer object, just storing information about span, and result of metrics calculation on span closing.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<Start, Result> Freeze for ProfileEntry<Start, Result>
impl<Start, Result> !RefUnwindSafe for ProfileEntry<Start, Result>
impl<Start, Result> Send for ProfileEntry<Start, Result>
impl<Start, Result> Sync for ProfileEntry<Start, Result>
impl<Start, Result> Unpin for ProfileEntry<Start, Result>
impl<Start, Result> UnsafeUnpin for ProfileEntry<Start, Result>where
Start: UnsafeUnpin,
Result: UnsafeUnpin,
impl<Start, Result> !UnwindSafe for ProfileEntry<Start, Result>
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