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
Returns this if find_torrents fails due to no search results being found
ReqwestError(String)
ReqwestError converted to a String
If you get this error, it probably means the regex failed.
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
The seeds regex failed
The leeches regex failed
Trait Implementations
impl Clone for TorrentSearchError
[src]
impl Clone for TorrentSearchError
[src]fn clone(&self) -> TorrentSearchError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for TorrentSearchError
[src]
impl Eq for TorrentSearchError
[src]impl Error for TorrentSearchError
[src]
impl Error for TorrentSearchError
[src]impl From<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 PartialEq<TorrentSearchError> for TorrentSearchError
[src]fn eq(&self, other: &TorrentSearchError) -> bool
[src]
fn ne(&self, other: &TorrentSearchError) -> bool
[src]
impl StructuralEq for TorrentSearchError
[src]
impl StructuralEq for TorrentSearchError
[src]Auto Trait Implementations
impl RefUnwindSafe for TorrentSearchError
impl RefUnwindSafe for TorrentSearchError
impl Send for TorrentSearchError
impl Send for TorrentSearchError
impl Sync for TorrentSearchError
impl Sync for TorrentSearchError
impl Unpin for TorrentSearchError
impl Unpin for TorrentSearchError
impl UnwindSafe for TorrentSearchError
impl UnwindSafe for TorrentSearchError
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]