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§

source

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 returned Poll::Pending. The future can be polled again.
  • Err(PollOnceError::FutureIsReady) if the future returned Poll::Ready without an error. The future should never resolve.
  • Err(PollOnceError::FutureError(err)) if the future returned Poll::Ready with an error. Something went wrong.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<F: Future<Output = Result<()>> + Unpin + Send> PollOnce for F