Struct Root
pub struct Root<T> { /* private fields */ }
Available on
tokio_unstable and Linux and crate feature rt and crate feature taskdump and (AArch64 or s390x or x86 or x86-64) only.A future wrapper that roots traces (captured with [Trace::capture]).
Trait Implementations
impl<'__pin, T> Unpin for Root<T>where PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
Auto Trait Implementations
impl<T> Freeze for Root<T>where T: Freeze,
impl<T> RefUnwindSafe for Root<T>where T: RefUnwindSafe,
impl<T> Send for Root<T>where T: Send,
impl<T> Sync for Root<T>where T: Sync,
impl<T> UnsafeUnpin for Root<T>where T: UnsafeUnpin,
impl<T> UnwindSafe for Root<T>where T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneToUninit for Twhere T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<F> IntoFuture for Fwhere F: Future,
type IntoFuture = F
Which kind of future are we turning this into?
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/runtime/dump/struct.Root.html