Struct Timeout
pub struct Timeout<T> { /* private fields */ }
Available on crate feature
time only.Future returned by timeout and timeout_at.
Implementations
Trait Implementations
impl<'__pin, T> Unpin for Timeout<T>where PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
Auto Trait Implementations
impl<T> !Freeze for Timeout<T>
impl<T> !RefUnwindSafe for Timeout<T>
impl<T> !UnsafeUnpin for Timeout<T>
impl<T> !UnwindSafe for Timeout<T>
impl<T> Send for Timeout<T>where T: Send,
impl<T> Sync for Timeout<T>where T: Sync,
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/time/struct.Timeout.html