pub struct Timeout<F> { /* private fields */ }Expand description
The future of Bot::timeout.
Trait Implementations§
Auto Trait Implementations§
impl<F> Forget for Timeout<F>
impl<F> Freeze for Timeout<F>where
*const F is !null: Freeze,
PhantomData<F>: Freeze,
*const ArcInner<Mutex<Shared>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Shared>>>: Freeze,
impl<F> Move for Timeout<F>
impl<F> RefUnwindSafe for Timeout<F>
impl<F> Send for Timeout<F>
impl<F> Sync for Timeout<F>
impl<F> Unpin for Timeout<F>
impl<F> UnsafeUnpin for Timeout<F>where
*const F is !null: UnsafeUnpin,
PhantomData<F>: UnsafeUnpin,
*const ArcInner<Mutex<Shared>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Shared>>>: UnsafeUnpin,
impl<F> UnwindSafe for Timeout<F>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more