[][src]Enum transmission::error::Error

pub enum Error {
    NoError,
    Unknown,
    IOError,
    ParseErr,
    ParseDuplicate,
    StatLocal,
    StatTracker,
    StatTrackerWarn,
    MakeMetaUrl,
    MakeMetaCancelled,
}

Different kinds of errors that can be produced by Transmission

This enum acts as a general wrapper for errors. Most errors produced by transmission-sys can be converted to this using Error::From.

Variants

NoError

A general state of non-error. If this is is ever the Err of a Result please file a bug report.

Unknown

For all errors with unknown causes.

IOError

An error occured in file I/O.

ParseErr

Error in parsing a torrent.

ParseDuplicate

When parsing a torrent if it is a duplicate.

StatLocal

Local error when getting a torrent's stats.

StatTracker

Tracker error when getting a torrent's stats.

StatTrackerWarn

Tracker warning when getting a torrent's stats.

MakeMetaUrl

An error with the URL when getting metainfo.

MakeMetaCancelled

Getting metainfo was cancelled.

Methods

impl Error[src]

pub fn as_result(self) -> TrResult<()>[src]

Converts the Error to a TrResult where NoError causes Ok.

Trait Implementations

impl From<tr_stat_errtype> for Error[src]

impl From<tr_metainfo_builder_err> for Error[src]

impl From<tr_parse_result> for Error[src]

impl From<i32> for Error[src]

impl Display for Error[src]

impl Debug for Error[src]

impl Error for Error[src]

fn description(&self) -> &str
1.0.0
[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

The lower-level source of this error, if any. Read more

impl Serialize for Error[src]

impl<'de> Deserialize<'de> for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]