pub enum TrendError {
Db(Error),
Fetch(FetchError),
Io(Error),
RateLimited {
endpoint: String,
attempts: u32,
},
Config(String),
Other(String),
}Expand description
Errors surfaced by trendkit-core.
Variants§
Db(Error)
A SQLite store operation failed.
Fetch(FetchError)
An HTTP fetch failed.
Io(Error)
A filesystem operation failed.
RateLimited
A source stayed rate-limited after exhausting the retry budget.
Fields
Config(String)
Configuration could not be loaded or is contradictory.
Other(String)
Anything that does not fit a typed variant yet.
Trait Implementations§
Source§impl Debug for TrendError
impl Debug for TrendError
Source§impl Display for TrendError
impl Display for TrendError
Source§impl Error for TrendError
impl Error for TrendError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for TrendError
impl From<Error> for TrendError
Source§fn from(source: Error) -> TrendError
fn from(source: Error) -> TrendError
Converts to this type from the input type.
Source§impl From<Error> for TrendError
impl From<Error> for TrendError
Source§fn from(source: Error) -> TrendError
fn from(source: Error) -> TrendError
Converts to this type from the input type.
Source§impl From<FetchError> for TrendError
impl From<FetchError> for TrendError
Source§fn from(source: FetchError) -> TrendError
fn from(source: FetchError) -> TrendError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TrendError
impl !UnwindSafe for TrendError
impl Freeze for TrendError
impl Send for TrendError
impl Sync for TrendError
impl Unpin for TrendError
impl UnsafeUnpin for TrendError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more