pub trait AsyncEvidence {
type Proof;
type Error;
// Required methods
fn committed(
&mut self,
) -> impl Future<Output = Result<bool, Self::Error>> + Send;
fn probe(
&mut self,
) -> impl Future<Output = Result<Option<Self::Proof>, Self::Error>> + Send;
// Provided method
fn wait(&mut self, until: Instant) -> impl Future<Output = ()> + Send { ... }
}Expand description
Evidence about a candidate, gathered on a Tokio runtime.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl<E> AsyncEvidence for Signaled<E>
Available on crate feature async only.
impl<E> AsyncEvidence for Signaled<E>
Available on crate feature
async only.