pub trait Loader: Send + Sync {
    // Required methods
    fn load<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Document, LoaderError>> + Send + 'static>>, LoaderError>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn load_and_split<'async_trait, TS>(
        self,
        splitter: TS
    ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Document, LoaderError>> + Send + 'static>>, LoaderError>> + Send + 'async_trait>>
       where TS: 'async_trait + TextSplitter + 'static,
             Self: 'async_trait;
}

Required Methods§

source

fn load<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Document, LoaderError>> + Send + 'static>>, LoaderError>> + Send + 'async_trait>>
where Self: 'async_trait,

source

fn load_and_split<'async_trait, TS>( self, splitter: TS ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Document, LoaderError>> + Send + 'static>>, LoaderError>> + Send + 'async_trait>>
where TS: 'async_trait + TextSplitter + 'static, Self: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Loader for LoPdfLoader

source§

impl Loader for TextLoader

source§

impl<R: Read + Send + Sync + 'static> Loader for CsvLoader<R>

source§

impl<R: Read + Send + Sync + 'static> Loader for HtmlLoader<R>

source§

impl<R: AsyncRead + Send + Sync + Unpin + 'static> Loader for PandocLoader<R>