pub enum WatchmodeError {
EmptyApiKey,
Request(Error),
Api {
status: StatusCode,
message: String,
},
RateLimited {
retry_after_seconds: Option<u64>,
},
UnsupportedOfferType(String),
InvalidResponse(String),
}Expand description
Errors returned by the Watchmode adapter.
Variants§
Trait Implementations§
Source§impl Debug for WatchmodeError
impl Debug for WatchmodeError
Source§impl Display for WatchmodeError
impl Display for WatchmodeError
Source§impl Error for WatchmodeError
impl Error for WatchmodeError
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 WatchmodeError
impl From<Error> for WatchmodeError
Source§impl From<WatchmodeError> for RecommendationError
impl From<WatchmodeError> for RecommendationError
Source§fn from(source: WatchmodeError) -> Self
fn from(source: WatchmodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WatchmodeError
impl !UnwindSafe for WatchmodeError
impl Freeze for WatchmodeError
impl Send for WatchmodeError
impl Sync for WatchmodeError
impl Unpin for WatchmodeError
impl UnsafeUnpin for WatchmodeError
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