pub trait PollOnce {
// Required method
fn poll_once(
&mut self,
) -> impl Future<Output = Result<(), PollOnceError>> + Send;
}Expand description
An extension trait for polling an Execution Extension future.
Required Methods§
Sourcefn poll_once(
&mut self,
) -> impl Future<Output = Result<(), PollOnceError>> + Send
fn poll_once( &mut self, ) -> impl Future<Output = Result<(), PollOnceError>> + Send
Polls the given Execution Extension future once. The future should be
(pinned)std::pin::pin.
§Returns
Ok(())if the future returnedPoll::Pending. The future can be polled again.Err(PollOnceError::FutureIsReady)if the future returnedPoll::Readywithout an error. The future should never resolve.Err(PollOnceError::FutureError(err))if the future returnedPoll::Readywith an error. Something went wrong.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".