Trait reth_exex_test_utils::PollOnce
source · 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::Ready
without an error. The future should never resolve.Err(PollOnceError::FutureError(err))
if the future returnedPoll::Ready
with an error. Something went wrong.
Object Safety§
This trait is not object safe.