Struct event_listener_strategy::FutureWrapper
source · pub struct FutureWrapper<F: ?Sized> { /* private fields */ }
Expand description
A wrapper around an EventListenerFuture
that implements Future
.
Implementations§
source§impl<F: EventListenerFuture> FutureWrapper<F>
impl<F: EventListenerFuture> FutureWrapper<F>
sourcepub fn into_inner(self) -> F
pub fn into_inner(self) -> F
Consume the FutureWrapper
, returning the inner future.
source§impl<F: ?Sized> FutureWrapper<F>
impl<F: ?Sized> FutureWrapper<F>
Trait Implementations§
source§impl<F: EventListenerFuture> From<F> for FutureWrapper<F>
impl<F: EventListenerFuture> From<F> for FutureWrapper<F>
source§impl<F: EventListenerFuture + ?Sized> Future for FutureWrapper<F>
impl<F: EventListenerFuture + ?Sized> Future for FutureWrapper<F>
§type Output = <F as EventListenerFuture>::Output
type Output = <F as EventListenerFuture>::Output
The type of value produced on completion.
impl<'__pin, F: ?Sized> Unpin for FutureWrapper<F>where
__Origin<'__pin, F>: Unpin,
Auto Trait Implementations§
impl<F> Freeze for FutureWrapper<F>
impl<F> RefUnwindSafe for FutureWrapper<F>where
F: RefUnwindSafe + ?Sized,
impl<F> Send for FutureWrapper<F>
impl<F> Sync for FutureWrapper<F>
impl<F> UnwindSafe for FutureWrapper<F>where
F: UnwindSafe + ?Sized,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<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?
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