[][src]Struct medina::Crawler

pub struct Crawler { /* fields omitted */ }

Implementations

impl Crawler[src]

pub fn new() -> Self[src]

pub fn push_item(&mut self, page: Box<dyn Page>) -> i32[src]

pub fn pop_item(&mut self) -> Option<Box<dyn Page>>[src]

pub fn delay_for_host(&self, host: &String) -> Duration[src]

pub fn set_host_request_rate(&mut self, host: String, requests_per_second: f64)[src]

pub fn set_default_request_rate(&mut self, requests_per_second: f64)[src]

pub async fn run<'_, '_>(
    crawler_mutex: &'_ (Mutex<Crawler>, Event),
    tasks_mutex: &'_ (Mutex<TaskRunner>, Event),
    start: SystemTime
)
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Crawler

impl Send for Crawler

impl Sync for Crawler

impl Unpin for Crawler

impl !UnwindSafe for Crawler

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.