Struct Entered
#[must_use = "once a span has been entered, it should be exited"]
pub struct Entered<'a> { /* private fields */ }
A guard representing a span which has been entered and is currently executing.
When the guard is dropped, the span will be exited.
This is returned by the Span::enter function.
Trait Implementations
impl Drop for Entered<'_>
fn drop(&mut self)
impl<'a> Debug for Entered<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Entered<'a>
impl<'a> !UnwindSafe for Entered<'a>
impl<'a> Freeze for Entered<'a>
impl<'a> Send for Entered<'a>
impl<'a> Sync for Entered<'a>
impl<'a> Unpin for Entered<'a>
impl<'a> UnsafeUnpin for Entered<'a>
Blanket Implementations
impl<T> Any for Entered<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Entered<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Entered<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Entered<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for Entered<'a>
impl<T> WithSubscriber for Entered<'a>
impl<T, U> Into<U> for Entered<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Entered<'a>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Entered<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>