pub struct Parks { /* private fields */ }Expand description
The parks of one loop.
Implementations§
Source§impl Parks
impl Parks
Sourcepub fn polling(&self) -> impl Future<Output = Infallible> + '_
pub fn polling(&self) -> impl Future<Output = Infallible> + '_
The first branch of the loop’s select!: a poll begins. Never ready.
Sourcepub fn parked(&self) -> impl Future<Output = Infallible> + '_
pub fn parked(&self) -> impl Future<Output = Infallible> + '_
The last branch of the loop’s select!: no branch before it was
ready in this poll. Never ready.
Sourcepub fn parked_from_now(&self) -> impl Future<Output = ()> + Send + 'static
pub fn parked_from_now(&self) -> impl Future<Output = ()> + Send + 'static
Wait until the loop parks in a poll begun after this call, every branch it waits on polled after whatever the caller did before and none ready, or until it ends. The loop is polled once more for it, as a spurious wake would, so a loop nothing has woken parks again.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parks
impl RefUnwindSafe for Parks
impl Send for Parks
impl Sync for Parks
impl Unpin for Parks
impl UnsafeUnpin for Parks
impl UnwindSafe for Parks
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.