pub struct ConsoleWriterPipeline;Expand description
A pipeline that prints scraped items to the console.
Implementations§
Trait Implementations§
Source§impl Default for ConsoleWriterPipeline
impl Default for ConsoleWriterPipeline
Source§impl<I: ScrapedItem> Pipeline<I> for ConsoleWriterPipeline
impl<I: ScrapedItem> Pipeline<I> for ConsoleWriterPipeline
Source§fn process_item<'life0, 'async_trait>(
&'life0 self,
item: I,
) -> Pin<Box<dyn Future<Output = Result<Option<I>, PipelineError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_item<'life0, 'async_trait>(
&'life0 self,
item: I,
) -> Pin<Box<dyn Future<Output = Result<Option<I>, PipelineError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Processes a single scraped item. Read more
Source§fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), PipelineError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), PipelineError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called when the spider is closing. Read more
Auto Trait Implementations§
impl Freeze for ConsoleWriterPipeline
impl RefUnwindSafe for ConsoleWriterPipeline
impl Send for ConsoleWriterPipeline
impl Sync for ConsoleWriterPipeline
impl Unpin for ConsoleWriterPipeline
impl UnwindSafe for ConsoleWriterPipeline
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