pub enum Pollresult<T> {
Unresolved(Future<T>),
Resolved(Option<T>),
}Expand description
Result of calling Future.poll().
Variants§
Unresolved(Future<T>)
Future is not yet resolved; returns the Future for further use.
Resolved(Option<T>)
Future has been resolved, and may or may not have a value. The Future has been consumed.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Pollresult<T>where
T: Freeze,
impl<T> RefUnwindSafe for Pollresult<T>where
T: RefUnwindSafe,
impl<T> Send for Pollresult<T>where
T: Send,
impl<T> Sync for Pollresult<T>
impl<T> Unpin for Pollresult<T>where
T: Unpin,
impl<T> UnwindSafe for Pollresult<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