Struct hooks_core::NextValueWith
source · Implementations
sourceimpl<'hook, H: ?Sized, Args, F: FnOnce(Pin<&mut H>) -> Args> NextValueWith<'hook, H, Args, F>
impl<'hook, H: ?Sized, Args, F: FnOnce(Pin<&mut H>) -> Args> NextValueWith<'hook, H, Args, F>
pub fn new(hook: Pin<&'hook mut H>, get_args: F) -> Self
Trait Implementations
sourceimpl<'hook, H: ?Sized, Args, F: FnOnce(Pin<&mut H>) -> Args> Future for NextValueWith<'hook, H, Args, F>where
H: Hook<Args>,
impl<'hook, H: ?Sized, Args, F: FnOnce(Pin<&mut H>) -> Args> Future for NextValueWith<'hook, H, Args, F>where
H: Hook<Args>,
type Output = Option<<H as HookLifetime<'hook, Args, &'hook <H as HookBounds>::Bounds>>::Value>
type Output = Option<<H as HookLifetime<'hook, Args, &'hook <H as HookBounds>::Bounds>>::Value>
The type of value produced on completion.
impl<'hook, H: ?Sized, Args, F: FnOnce(Pin<&mut H>) -> Args> Unpin for NextValueWith<'hook, H, Args, F>
Auto Trait Implementations
impl<'hook, H: ?Sized, Args, F> RefUnwindSafe for NextValueWith<'hook, H, Args, F>where
F: RefUnwindSafe,
H: RefUnwindSafe,
impl<'hook, H: ?Sized, Args, F> Send for NextValueWith<'hook, H, Args, F>where
F: Send,
H: Send,
impl<'hook, H: ?Sized, Args, F> Sync for NextValueWith<'hook, H, Args, F>where
F: Sync,
H: Sync,
impl<'hook, H, Args, F> !UnwindSafe for NextValueWith<'hook, H, Args, F>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more