pub trait AsyncValidate<R: ?Sized + Sync, Scope = ()> {
// Required method
fn validate_async_with<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 ValidationContext,
resolver: &'life2 R,
) -> Pin<Box<dyn Future<Output = Result<(), AsyncValidationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided method
fn validate_async<'life0, 'life1, 'async_trait>(
&'life0 self,
resolver: &'life1 R,
) -> Pin<Box<dyn Future<Output = Result<(), AsyncValidationError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
Run synchronous + asynchronous checks resolved via a host-implemented capability trait R.
Required Methods§
fn validate_async_with<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 ValidationContext,
resolver: &'life2 R,
) -> Pin<Box<dyn Future<Output = Result<(), AsyncValidationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Provided Methods§
fn validate_async<'life0, 'life1, 'async_trait>(
&'life0 self,
resolver: &'life1 R,
) -> Pin<Box<dyn Future<Output = Result<(), AsyncValidationError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".