[][src]Enum extrablatt::extrablatt::DocumentDownloadState

pub enum DocumentDownloadState {
    NotRequested,
    Success {
        received: Instant,
        doc: Document,
    },
    NoHttpSuccessResponse {
        received: Instant,
    },
    HttpRequestFailure {
        received: Instant,
    },
    DocumentReadFailure {
        received: Instant,
    },
}

Variants

NotRequested

No request sent yet.

Success

Received a success response at received and successfully parsed the html document.

Fields of Success

received: Instant

Timestamp the response was received.

doc: Document

The parsed html body.

NoHttpSuccessResponse

Fields of NoHttpSuccessResponse

received: Instant

Timestamp the response was received.

HttpRequestFailure

Received an error response.

Fields of HttpRequestFailure

received: Instant

Timestamp the response was received.

DocumentReadFailure

Received a success response at received but failed to parse the body into a select::document::Document

Fields of DocumentReadFailure

received: Instant

Timestamp the response was received.

Implementations

impl DocumentDownloadState[src]

pub fn success_document(&self) -> Option<&Document>[src]

The actual document if the request was successful.

pub fn is_http_failure(&self) -> bool[src]

pub fn is_no_http_success_response(&self) -> bool[src]

pub fn is_doc_parsing_failure(&self) -> bool[src]

pub fn is_not_requested(&self) -> bool[src]

pub fn is_success(&self) -> bool[src]

Trait Implementations

impl Debug for DocumentDownloadState[src]

impl Default for DocumentDownloadState[src]

Auto Trait Implementations

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,