[][src]Enum nyaadesu::Error

pub enum Error {
    Request,
    Scraping,
}

Emun that encodes possible errors

Variants

Request

Error with the request e.g. the server do not respond or you don't have access to it.

Scraping

Scraping error. Since all the data is obtained via scraping of html pages if somehting in how Nyaa.si's pages are generated is changed searching for torrents may fail. This should hopefully never happen but I highly suggest you to always check for scaping errors and, if you ever record one, to report it as an issue on GitHub so that the library can be updated.

Trait Implementations

impl Debug for Error[src]

Auto Trait Implementations

impl Sync for Error

impl Unpin for Error

impl Send for Error

impl UnwindSafe for Error

impl RefUnwindSafe for Error

Blanket Implementations

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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