[−][src]Enum transmission::error::Error
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]
fn from(staterr: tr_stat_errtype) -> Self
[src]
impl From<tr_metainfo_builder_err> for Error
[src]
fn from(builderr: tr_metainfo_builder_err) -> Self
[src]
impl From<tr_parse_result> for Error
[src]
fn from(parseerr: tr_parse_result) -> Self
[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]
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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Error
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,