Trait sauce_api::source::Source

source ·
pub trait Sourcewhere
    Self: Sized,
{ type Argument; fn check<'life0, 'life1, 'async_trait>(
        &'life0 self,
        url: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Output, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn create<'async_trait>(
        argument: Self::Argument
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Expand description

The generic trait implemented by all sources under this module.

Required Associated Types

The argument for Source::create

Required Methods

Searches for the source of a given URL.

Allows for self-modifying the state of the Source, with an additional ‘State’ parameter that can be passed in.

Implementors