pub trait AsyncCreateWithAndValidate<X>:
Sized
+ AsyncTryFrom<X>
+ ValidateIntegrity<Error = <Self as AsyncTryFrom<X>>::Error>{
// Provided method
fn new_and_validate<'life0, 'async_trait>(
input: &'life0 X,
) -> Pin<Box<dyn Future<Output = Result<Self, <Self as AsyncTryFrom<X>>::Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Trait that combines async creation with integrity validation
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.