Struct tracing_core::dispatcher::State
source · struct State {
default: RefCell<Option<Dispatch>>,
can_enter: Cell<bool>,
}
Expand description
The dispatch state of a thread.
Fields§
§default: RefCell<Option<Dispatch>>
This thread’s current default dispatcher.
can_enter: Cell<bool>
Whether or not we can currently begin dispatching a trace event.
This is set to false
when functions such as enter
, exit
, event
,
and new_span
are called on this thread’s default dispatcher, to
prevent further trace events triggered inside those functions from
creating an infinite recursion. When we finish handling a dispatch, this
is set back to true
.
Implementations§
Auto Trait Implementations§
impl !Freeze for State
impl !RefUnwindSafe for State
impl Send for State
impl !Sync for State
impl Unpin for State
impl !UnwindSafe for State
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