Enum torrent_search::TorrentSearchError[][src]

pub enum TorrentSearchError {
    NoSearchResults,
    ReqwestError(String),
    MagnetNotFound,
    SearchTooShort,
    SeedsNotFound,
    LeechesNotFound,
}

If you get this, that means something went wrong while either scraping or getting the torrent page.

Variants

NoSearchResults

Returns this if find_torrents fails due to no search results being found

ReqwestError(String)

ReqwestError converted to a String

MagnetNotFound

If you get this error, it probably means the regex failed.

SearchTooShort

L337X needs searches to be longer than 3 characters. I could’ve just returned a NoSearchResults error, but that is more confusing and harder to debug

SeedsNotFound

The seeds regex failed

LeechesNotFound

The leeches regex failed

Trait Implementations

impl Clone for TorrentSearchError[src]

impl Debug for TorrentSearchError[src]

impl Display for TorrentSearchError[src]

impl Eq for TorrentSearchError[src]

impl Error for TorrentSearchError[src]

impl From<Error> for TorrentSearchError[src]

This is necessary to make using reqwest possible

impl PartialEq<TorrentSearchError> for TorrentSearchError[src]

impl StructuralEq for TorrentSearchError[src]

impl StructuralPartialEq for TorrentSearchError[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.