pub struct FocusedSourceExtractor { /* private fields */ }Expand description
Built-in focused source HTTP and test extractor.
Implementations§
Source§impl FocusedSourceExtractor
impl FocusedSourceExtractor
Sourcepub fn new(language: FocusedSourceLanguage) -> Self
pub fn new(language: FocusedSourceLanguage) -> Self
Creates an extractor for one mandatory source-language matrix.
Sourcepub fn with_budgets(
language: FocusedSourceLanguage,
budgets: ExtractionBudgets,
) -> Self
pub fn with_budgets( language: FocusedSourceLanguage, budgets: ExtractionBudgets, ) -> Self
Creates an extractor with explicit effective per-invocation budgets.
Trait Implementations§
Source§impl BoundaryExtractor for FocusedSourceExtractor
impl BoundaryExtractor for FocusedSourceExtractor
Source§fn supports(&self, file: &FileDescriptor) -> bool
fn supports(&self, file: &FileDescriptor) -> bool
Returns whether this extractor can consume a candidate file.
Source§fn discover<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 DiscoverContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveredInput>, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn discover<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 DiscoverContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveredInput>, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Selects supported files from a bounded deterministic inventory.
Source§fn extract<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 ExtractInput<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ExtractionBatch, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn extract<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 ExtractInput<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ExtractionBatch, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Produces a complete replacement batch for one source file.
Source§fn fingerprint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 ExtractInput<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ContentFingerprint, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn fingerprint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 ExtractInput<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ContentFingerprint, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Computes the source fingerprint used for incremental reuse.
Auto Trait Implementations§
impl Freeze for FocusedSourceExtractor
impl RefUnwindSafe for FocusedSourceExtractor
impl Send for FocusedSourceExtractor
impl Sync for FocusedSourceExtractor
impl Unpin for FocusedSourceExtractor
impl UnsafeUnpin for FocusedSourceExtractor
impl UnwindSafe for FocusedSourceExtractor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more