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: ?Sized> RefUnwindSafe for FutureWrapper<F>where
F: RefUnwindSafe,
impl<F: ?Sized> Send for FutureWrapper<F>where
F: Send,
impl<F: ?Sized> Sync for FutureWrapper<F>where
F: Sync,
impl<F: ?Sized> UnwindSafe for FutureWrapper<F>where
F: UnwindSafe,
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<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