pub enum GithubError {
BadRequest,
ScrapeFailure(StatusCode),
ProfileNotFound(String),
}Expand description
A collection of error variants related to making a request to a Github profile page prior to scraping.
Variants§
BadRequest
Represents a generic failure while trying to make a GET request to the specified Github profile page.
ScrapeFailure(StatusCode)
Represents a failure caused while attempting to scrape the specified Github profile page. This is typically caused by either a Github service outage, or any other kind of rejection (e.g rate-limiting, etc).
ProfileNotFound(String)
Represents a 404 response caused by attempting to scrape a non-existing Github profile page.
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
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 PartialEq for GithubError
impl PartialEq for GithubError
impl Eq for GithubError
impl StructuralPartialEq for GithubError
Auto Trait Implementations§
impl Freeze for GithubError
impl RefUnwindSafe for GithubError
impl Send for GithubError
impl Sync for GithubError
impl Unpin for GithubError
impl UnwindSafe 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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.