Skip to main content

PackageManifest

Trait PackageManifest 

Source
pub trait PackageManifest: Sync {
    // Required methods
    fn get_name(&self) -> String;
    fn file_name_patterns(&self) -> &'static [&'static str];
    fn recognize<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = Result<Package, SourcePkgError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided methods
    fn get_identifier(&self) -> String { ... }
    fn recognize_with_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        path: &'life1 Path,
        _context: &'life2 RecognizeContext,
    ) -> Pin<Box<dyn Future<Output = Result<Package, SourcePkgError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Required Methods§

Source

fn get_name(&self) -> String

Source

fn file_name_patterns(&self) -> &'static [&'static str]

Source

fn recognize<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = Result<Package, SourcePkgError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn get_identifier(&self) -> String

Source

fn recognize_with_config<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, path: &'life1 Path, _context: &'life2 RecognizeContext, ) -> Pin<Box<dyn Future<Output = Result<Package, SourcePkgError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§