pub struct FutureOption<T> { /* private fields */ }
Expand description
A future representing a value which may or may not be present.
Created by the IntoFuture
implementation for std::option::Option
.
Trait Implementations§
Source§impl<T: Clone> Clone for FutureOption<T>
impl<T: Clone> Clone for FutureOption<T>
Source§fn clone(&self) -> FutureOption<T>
fn clone(&self) -> FutureOption<T>
Returns a copy of the value. Read more
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<T: Debug> Debug for FutureOption<T>
impl<T: Debug> Debug for FutureOption<T>
Source§impl<T> From<Option<T>> for FutureOption<T>
impl<T> From<Option<T>> for FutureOption<T>
Source§impl<F, T, E> Future for FutureOption<F>where
F: Future<Item = T, Error = E>,
impl<F, T, E> Future for FutureOption<F>where
F: Future<Item = T, Error = E>,
Auto Trait Implementations§
impl<T> Freeze for FutureOption<T>where
T: Freeze,
impl<T> RefUnwindSafe for FutureOption<T>where
T: RefUnwindSafe,
impl<T> Send for FutureOption<T>where
T: Send,
impl<T> Sync for FutureOption<T>where
T: Sync,
impl<T> Unpin for FutureOption<T>where
T: Unpin,
impl<T> UnwindSafe for FutureOption<T>where
T: 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<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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§fn into_future(self) -> F
fn into_future(self) -> F
Consumes this object and produces a future.