Skip to main content

LayoutReaderFactory

Trait LayoutReaderFactory 

Source
pub trait LayoutReaderFactory:
    'static
    + Send
    + Sync {
    // Required method
    fn open<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = VortexResult<Option<LayoutReaderRef>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

An async factory that produces a LayoutReaderRef.

Implementations handle file opening, footer caching, and statistics-based pruning. Returns None if the source should be skipped (e.g., pruned based on file-level statistics before the reader is fully constructed).

Required Methods§

Source

fn open<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = VortexResult<Option<LayoutReaderRef>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Opens the layout reader, or returns None if it should be skipped.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§