Struct WaitFor

Source
pub struct WaitFor<'group, F, List> { /* private fields */ }
Expand description

Future type for the [Group::wait_for] method.

Trait Implementations§

Source§

impl<'group, F: Debug, List: Debug> Debug for WaitFor<'group, F, List>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<F: Future, List: FutList> Future for WaitFor<'_, F, List>

Source§

type Output = <F as Future>::Output

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
Source§

impl<'group, F: Ord, List: Ord> Ord for WaitFor<'group, F, List>

Source§

fn cmp(&self, other: &WaitFor<'group, F, List>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<'group, F: PartialEq, List: PartialEq> PartialEq for WaitFor<'group, F, List>

Source§

fn eq(&self, other: &WaitFor<'group, F, List>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'group, F: PartialOrd, List: PartialOrd> PartialOrd for WaitFor<'group, F, List>

Source§

fn partial_cmp(&self, other: &WaitFor<'group, F, List>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<'group, F: Eq, List: Eq> Eq for WaitFor<'group, F, List>

Source§

impl<'group, F, List> StructuralPartialEq for WaitFor<'group, F, List>

Source§

impl<'__pin, 'group, F, List> Unpin for WaitFor<'group, F, List>
where PinnedFieldsOf<__Origin<'__pin, 'group, F, List>>: Unpin,

Auto Trait Implementations§

§

impl<'group, F, List> Freeze for WaitFor<'group, F, List>
where F: Freeze,

§

impl<'group, F, List> RefUnwindSafe for WaitFor<'group, F, List>
where F: RefUnwindSafe, List: RefUnwindSafe,

§

impl<'group, F, List> Send for WaitFor<'group, F, List>
where F: Send, List: Send,

§

impl<'group, F, List> Sync for WaitFor<'group, F, List>
where F: Sync, List: Sync,

§

impl<'group, F, List> !UnwindSafe for WaitFor<'group, F, List>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F> IntoFuture for F
where F: Future,

Source§

type Output = <F as Future>::Output

The output that the future will produce on completion.
Source§

type IntoFuture = F

Which kind of future are we turning this into?
Source§

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.