Enum imdb_async::Error
source · pub enum Error {
YearMissing,
SeasonMissing,
EpisodeMissing,
WrongMediaType(&'static str, &'static str),
HTTP(Error),
CSV(Error),
IO(Error),
SystemTime(SystemTimeError),
NotFound(u32),
Cache(Error<u32>),
InvalidGenre(String),
}
Variants§
YearMissing
SeasonMissing
EpisodeMissing
WrongMediaType(&'static str, &'static str)
HTTP(Error)
CSV(Error)
IO(Error)
SystemTime(SystemTimeError)
NotFound(u32)
Cache(Error<u32>)
InvalidGenre(String)
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more