pub trait AsyncCreateWithAndValidateFile:
Sized
+ AsyncTryFromFile
+ ValidateIntegrity<Error = <Self as AsyncTryFromFile>::Error> {
// Provided method
fn new_from_file_and_validate<'life0, 'async_trait>(
path: &'life0 Path,
) -> Pin<Box<dyn Future<Output = Result<Self, <Self as AsyncTryFromFile>::Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Trait that combines file-based creation with ValidateIntegrity.
Provided Methods§
fn new_from_file_and_validate<'life0, 'async_trait>(
path: &'life0 Path,
) -> Pin<Box<dyn Future<Output = Result<Self, <Self as AsyncTryFromFile>::Error>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
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.