pub enum CommonResponseCodes {
BadRequestCode,
AuthErrorCode,
ServerErrorCode,
}
Expand description
Error codes used by twitch that are the same across most endpoints.
Variants§
BadRequestCode
The request did not conform to what the endpoint was expecting
AuthErrorCode
The authorization provided was not valid or was out of date
ServerErrorCode
Twitch may be experiencing internal errors, if encountered the request should be retried once. If that fails then assume twitch is temporarily down.
Trait Implementations§
Source§impl Clone for CommonResponseCodes
impl Clone for CommonResponseCodes
Source§fn clone(&self) -> CommonResponseCodes
fn clone(&self) -> CommonResponseCodes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CommonResponseCodes
impl Debug for CommonResponseCodes
Source§impl<'de> Deserialize<'de> for CommonResponseCodes
impl<'de> Deserialize<'de> for CommonResponseCodes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CommonResponseCodes
impl Display for CommonResponseCodes
Source§impl Error for CommonResponseCodes
impl Error for CommonResponseCodes
1.30.0 · 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 ErrorCodes for CommonResponseCodes
impl ErrorCodes for CommonResponseCodes
Source§fn from_status(
codes: FailureStatus<u16>,
) -> Result<FailureStatus<Self>, FailureStatus<u16>>
fn from_status( codes: FailureStatus<u16>, ) -> Result<FailureStatus<Self>, FailureStatus<u16>>
Possibly mark the status as a known status of this kind, used by
RequestError
impl Copy for CommonResponseCodes
Auto Trait Implementations§
impl Freeze for CommonResponseCodes
impl RefUnwindSafe for CommonResponseCodes
impl Send for CommonResponseCodes
impl Sync for CommonResponseCodes
impl Unpin for CommonResponseCodes
impl UnwindSafe for CommonResponseCodes
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