Struct AlwaysReady

struct AlwaysReady<T, F: Fn() -> T>(_)

Future for the always_ready function.

Implementations

impl<F> IntoFuture for AlwaysReady<T, F>

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

impl<F, T, E> TryFuture for AlwaysReady<T, F>

fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>

impl<Fut> TryFutureExt for AlwaysReady<T, F>

impl<T> Any for AlwaysReady<T, F>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for AlwaysReady<T, F>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for AlwaysReady<T, F>

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

impl<T> CloneToUninit for AlwaysReady<T, F>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for AlwaysReady<T, F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for AlwaysReady<T, F>

impl<T> ToOwned for AlwaysReady<T, F>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, F> Freeze for AlwaysReady<T, F>

impl<T, F> RefUnwindSafe for AlwaysReady<T, F>

impl<T, F> Send for AlwaysReady<T, F>

impl<T, F> Sync for AlwaysReady<T, F>

impl<T, F> UnsafeUnpin for AlwaysReady<T, F>

impl<T, F> UnwindSafe for AlwaysReady<T, F>

impl<T, F: Fn() -> T + Clone> Clone for AlwaysReady<T, F>

fn clone(self: &Self) -> Self

impl<T, F: Fn() -> T + Copy> Copy for AlwaysReady<T, F>

impl<T, F: Fn() -> T> Debug for AlwaysReady<T, F>

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

impl<T, F: Fn() -> T> FusedFuture for AlwaysReady<T, F>

fn is_terminated(self: &Self) -> bool

impl<T, F: Fn() -> T> Future for AlwaysReady<T, F>

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

impl<T, F: Fn() -> T> Unpin for AlwaysReady<T, F>

impl<T, U> Into for AlwaysReady<T, F>

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for AlwaysReady<T, F>

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

impl<T, U> TryInto for AlwaysReady<T, F>

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