Struct Unconstrained
pub struct Unconstrained<F> { /* private fields */ }
Available on crate feature
rt only.Future for the unconstrained method.
Trait Implementations
impl<F> Future for Unconstrained<F>where F: Future,
impl<'__pin, F> Unpin for Unconstrained<F>where PinnedFieldsOf<__Origin<'__pin, F>>: Unpin,
Auto Trait Implementations
impl<F> Freeze for Unconstrained<F>where F: Freeze,
impl<F> RefUnwindSafe for Unconstrained<F>where F: RefUnwindSafe,
impl<F> Send for Unconstrained<F>where F: Send,
impl<F> Sync for Unconstrained<F>where F: Sync,
impl<F> UnsafeUnpin for Unconstrained<F>where F: UnsafeUnpin,
impl<F> UnwindSafe for Unconstrained<F>where F: 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> 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/task/coop/struct.Unconstrained.html