pub struct WaitAnyTimeout<A: TimerAccess, T> { /* private fields */ }Expand description
并发竞争一次交值的带超时等待,只接收原规则选定的一个值。 原等待失败、超时、计时失败分别为Wait/Elapsed/Timer;其它发送者(senders)沿原竞争及关闭规则处理。 超时或释放(drop)不撤销此前已接受的交值;未取得接受许可的后续交值保留原值和实际拒绝原因。
Trait Implementations§
§impl<A: TimerAccess, T> Future for WaitAnyTimeout<A, T>
impl<A: TimerAccess, T> Future for WaitAnyTimeout<A, T>
Auto Trait Implementations§
impl<A, T> !RefUnwindSafe for WaitAnyTimeout<A, T>
impl<A, T> !UnwindSafe for WaitAnyTimeout<A, T>
impl<A, T> Forget for WaitAnyTimeout<A, T>
impl<A, T> Freeze for WaitAnyTimeout<A, T>
impl<A, T> Move for WaitAnyTimeout<A, T>
impl<A, T> Send for WaitAnyTimeout<A, T>
impl<A, T> Sync for WaitAnyTimeout<A, T>
impl<A, T> Unpin for WaitAnyTimeout<A, T>
impl<A, T> UnsafeUnpin for WaitAnyTimeout<A, T>
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
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