Trait AsyncLoadSource

Source
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§

Source

fn load( &self, ) -> impl Future<Output = Result<Vec<String>, Self::ErrorType>> + Send

Called an returns a vector of raw text to generate embeddings for

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.

Implementors§