pub trait AsyncLoadSource {
type ErrorType: Error;
// Required method
fn load(
&self,
) -> impl Future<Output = Result<Vec<String>, Self::ErrorType>> + Send;
}
Expand description
§AsyncLoadSource
Async version of LoadSource
to support loading raw text from an external source
Required Associated Types§
Required 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.