pub struct Timeout<T> { /* 私有字段 */ }展开描述
由 timeout 和 timeout_at 返回的 Future。
实现§
trait 实现§
impl<'__pin, T> Unpin for Timeout<T>where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
自动 trait 实现§
impl<T> !Freeze for Timeout<T>
impl<T> !RefUnwindSafe for Timeout<T>
impl<T> Send for Timeout<T>where
T: Send,
impl<T> Sync for Timeout<T>where
T: Sync,
impl<T> !UnsafeUnpin for Timeout<T>
impl<T> !UnwindSafe for Timeout<T>
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息
源代码§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
源代码§type IntoFuture = F
type IntoFuture = F
我们将要把此值转变成哪种 future?
源代码§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. 更多信息