pub enum TvdbError {
InternalError {
reason: String,
},
SeriesNotFound,
CommunicationError {
reason: String,
},
DataError {
reason: String,
},
Cancelled,
}
Expand description
Errors in contacting TheTVDB
Variants
InternalError
Fields
reason: String
An internal error within this library
SeriesNotFound
When looking up a nonexistent series
CommunicationError
Fields
reason: String
Error contacting TheTVDB.com (e.g HTTP error)
DataError
Fields
reason: String
Malformed data in response from TheTVDB.com
Cancelled
User cancelled in some interactive fashion
Trait Implementations
sourceimpl Error for TvdbError
impl Error for TvdbError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<ParseIntError> for TvdbError
impl From<ParseIntError> for TvdbError
Convert from parse error (e.g for dateify() function)
sourcefn from(err: ParseIntError) -> TvdbError
fn from(err: ParseIntError) -> TvdbError
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for TvdbError
impl Send for TvdbError
impl Sync for TvdbError
impl Unpin for TvdbError
impl UnwindSafe for TvdbError
Blanket Implementations
impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to
Self
into a dynamic trait object of Fail
.sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more