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