pub trait DemandPersistence:
Debug
+ Send
+ Sync {
// Required method
fn persists<'life0, 'async_trait>(
&'life0 self,
policy: PolicyId,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Whether the demand that justified a retry still exists.
Required Methods§
fn persists<'life0, 'async_trait>(
&'life0 self,
policy: PolicyId,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".