#[non_exhaustive]pub enum GitHubError {
Show 15 variants
Cancelled,
NetworkError(Error),
AuthenticationError(String),
AccessDeniedError(String),
NotFoundError(String),
RateLimitError(Box<RateLimitDetails>),
AccessBlockedError(String),
DmcaBlockedError(String),
InvalidInput(String),
PaginationError(String),
ApiError {
status: u16,
message: String,
},
GraphQLError(Vec<GraphQLError>),
ParseError(DecodeError),
ConfigError(String),
FallbackError {
graphql: Box<GitHubError>,
rest: Box<GitHubError>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cancelled
A progress callback requested cancellation.
NetworkError(Error)
AuthenticationError(String)
AccessDeniedError(String)
NotFoundError(String)
RateLimitError(Box<RateLimitDetails>)
AccessBlockedError(String)
DmcaBlockedError(String)
InvalidInput(String)
PaginationError(String)
ApiError
GraphQLError(Vec<GraphQLError>)
ParseError(DecodeError)
ConfigError(String)
FallbackError
Both attempts of an authenticated repository lookup failed.
source() returns the original GraphQL failure; kind() classifies the
final REST outcome. Inspect either field directly when both matter.
Implementations§
Trait Implementations§
Source§impl Debug for GitHubError
impl Debug for GitHubError
Source§impl Display for GitHubError
impl Display for GitHubError
Source§impl Error for GitHubError
impl Error for GitHubError
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 GitHubError
impl From<Error> for GitHubError
Auto Trait Implementations§
impl !RefUnwindSafe for GitHubError
impl !UnwindSafe for GitHubError
impl Freeze for GitHubError
impl Send for GitHubError
impl Sync for GitHubError
impl Unpin for GitHubError
impl UnsafeUnpin for GitHubError
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