pub struct TracingHandle { /* private fields */ }Expand description
A handle that can be used to request shutdown of observability background tasks.
Currently this is a minimal primitive; it can later be extended to stop exporters.
Implementations§
Source§impl TracingHandle
impl TracingHandle
Sourcepub fn request_shutdown(&self)
pub fn request_shutdown(&self)
Request shutdown of background observability tasks.
Sourcepub fn is_shutdown_requested(&self) -> bool
pub fn is_shutdown_requested(&self) -> bool
Returns true if shutdown was requested.
Trait Implementations§
Source§impl Clone for TracingHandle
impl Clone for TracingHandle
Source§fn clone(&self) -> TracingHandle
fn clone(&self) -> TracingHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TracingHandle
impl RefUnwindSafe for TracingHandle
impl Send for TracingHandle
impl Sync for TracingHandle
impl Unpin for TracingHandle
impl UnwindSafe for TracingHandle
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