pub struct SpanGuard {
pub(crate) inner: Option<SpanGuardInner>,
_not_send: PhantomNotSend,
}Expand description
Exits and drops the span when this is dropped.
Fields§
§inner: Option<SpanGuardInner>§_not_send: PhantomNotSendⓘ
use veecle_telemetry::span::*;
trait AssertSend: Send {}
impl AssertSend for SpanGuard {}Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpanGuard
impl RefUnwindSafe for SpanGuard
impl !Send for SpanGuard
impl Sync for SpanGuard
impl Unpin for SpanGuard
impl UnwindSafe for SpanGuard
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