Struct PollImmediate
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct PollImmediate<T> { /* private fields */ }
Future for the poll_immediate function.
It will never return [Poll::Pending].
Trait Implementations
impl<'__pin, T> Unpin for PollImmediate<T>
where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
impl<T, F> Future for PollImmediate<F>
where
F: Future<Output = T>,
type Output = Option<T>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<T>>
impl<T, F> Stream for PollImmediate<F>
where
F: Future<Output = T>,
type Item = Poll<T>;fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>
impl<T: Clone> Clone for PollImmediate<T>
fn clone(&self) -> PollImmediate<T>
impl<T: Debug> Debug for PollImmediate<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Future> FusedFuture for PollImmediate<T>
fn is_terminated(&self) -> bool
Auto Trait Implementations
impl<T> Freeze for PollImmediate<T>
where
Option<T>: Freeze,
impl<T> RefUnwindSafe for PollImmediate<T>
where
Option<T>: RefUnwindSafe,
impl<T> Send for PollImmediate<T>
where
Option<T>: Send,
impl<T> Sync for PollImmediate<T>
where
Option<T>: Sync,
impl<T> UnsafeUnpin for PollImmediate<T>
where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for PollImmediate<T>
where
Option<T>: UnwindSafe,
Blanket Implementations
impl<F> IntoFuture for PollImmediate<T>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<T> Any for PollImmediate<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PollImmediate<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PollImmediate<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for PollImmediate<T>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for PollImmediate<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for PollImmediate<T>
where
T: Future + ?Sized,
impl<T> StreamExt for PollImmediate<T>
where
T: Stream + ?Sized,
impl<T> ToOwned for PollImmediate<T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for PollImmediate<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PollImmediate<T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PollImmediate<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>