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>
sourcepub fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut F>
pub fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut F>
Get a pinned mutable reference to the inner future.
sourcepub fn get_pin_ref(self: Pin<&Self>) -> Pin<&F>
pub fn get_pin_ref(self: Pin<&Self>) -> Pin<&F>
Get a pinned reference to the inner future.
Trait Implementations§
source§impl<F: Clone + ?Sized> Clone for FutureWrapper<F>
impl<F: Clone + ?Sized> Clone for FutureWrapper<F>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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>
source§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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,
source§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