pub struct PackageManifestExtractor { /* private fields */ }Expand description
Built-in package-manifest extractor for the mandatory package ecosystems.
Implementations§
Source§impl PackageManifestExtractor
impl PackageManifestExtractor
Sourcepub const fn with_budgets(budgets: ExtractionBudgets) -> Self
pub const fn with_budgets(budgets: ExtractionBudgets) -> Self
Creates an extractor with explicit effective per-invocation budgets.
Trait Implementations§
Source§impl BoundaryExtractor for PackageManifestExtractor
impl BoundaryExtractor for PackageManifestExtractor
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 PackageManifestExtractor
impl RefUnwindSafe for PackageManifestExtractor
impl Send for PackageManifestExtractor
impl Sync for PackageManifestExtractor
impl Unpin for PackageManifestExtractor
impl UnsafeUnpin for PackageManifestExtractor
impl UnwindSafe for PackageManifestExtractor
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