pub trait AsyncCreateWithAndValidateFile:
Sized
+ AsyncTryFromFile
+ ValidateIntegrity<Error = Self::Error> {
// Provided method
fn new_from_file_and_validate<'life0, 'async_trait>(
path: &'life0 Path,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: Send + '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::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Send + '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.