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
sourcetype Argument
type Argument
The argument for Source::create