pub struct FlowSpan {}Expand description
A span builder used by broker flows.
Implementations§
Source§impl FlowSpan
impl FlowSpan
Sourcepub fn new(kind: FlowKind, stage: &'static str) -> Self
pub fn new(kind: FlowKind, stage: &'static str) -> Self
Creates a new span tagged with the provided flow kind + stage.
Sourcepub fn entered(self) -> FlowSpanGuard
pub fn entered(self) -> FlowSpanGuard
Enters the span for synchronous sections.
Sourcepub fn instrument<Fut>(&self, fut: Fut) -> InstrumentedFlow<Fut>where
Fut: Future,
pub fn instrument<Fut>(&self, fut: Fut) -> InstrumentedFlow<Fut>where
Fut: Future,
Instruments an async block without holding a guard across .await points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlowSpan
impl RefUnwindSafe for FlowSpan
impl Send for FlowSpan
impl Sync for FlowSpan
impl Unpin for FlowSpan
impl UnwindSafe for FlowSpan
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