[][src]Trait stork::StorkClient

pub trait StorkClient<T>: Default {
    fn run(&self, src: &T) -> Pin<Box<dyn Stream<Item = Result<T, Error>>>>;
}

A StorkClient is an underlying implementation of a storker. When a Storkable is initialised a StorkClient will be created using Default::default and the instance will be shared between all child Storkables.

The default StorkClient initialised by the Storkable can be replaced using Storkable::with_client.

StorkClients may be used across threads and must be thread-safe.

Required methods

fn run(&self, src: &T) -> Pin<Box<dyn Stream<Item = Result<T, Error>>>>

Makes a call to T and returns the child Ts it can find on the page.

Loading content...

Implementors

Loading content...