pub enum TraktSyncError {
NotLinked,
Forbidden,
InvalidConfiguration(String),
Api {
status: StatusCode,
message: String,
},
RateLimited {
retry_after_seconds: Option<u64>,
},
InvalidResponse(String),
MissingExternalId,
MissingActivityTimestamp,
Request(Error),
Authentication(TraktError),
Storage(MediaStoreError),
}Variants§
NotLinked
Forbidden
InvalidConfiguration(String)
Api
RateLimited
InvalidResponse(String)
MissingExternalId
MissingActivityTimestamp
Request(Error)
Authentication(TraktError)
Storage(MediaStoreError)
Trait Implementations§
Source§impl Debug for TraktSyncError
impl Debug for TraktSyncError
Source§impl Display for TraktSyncError
impl Display for TraktSyncError
Source§impl Error for TraktSyncError
impl Error for TraktSyncError
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 TraktSyncError
impl From<Error> for TraktSyncError
Source§impl From<MediaStoreError> for TraktSyncError
impl From<MediaStoreError> for TraktSyncError
Source§fn from(source: MediaStoreError) -> Self
fn from(source: MediaStoreError) -> Self
Converts to this type from the input type.
Source§impl From<TraktError> for TraktSyncError
impl From<TraktError> for TraktSyncError
Source§fn from(source: TraktError) -> Self
fn from(source: TraktError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TraktSyncError
impl !UnwindSafe for TraktSyncError
impl Freeze for TraktSyncError
impl Send for TraktSyncError
impl Sync for TraktSyncError
impl Unpin for TraktSyncError
impl UnsafeUnpin for TraktSyncError
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