pub enum LookupError {
HttpClient(Error),
HeaderValue(InvalidHeaderValue),
HeaderToString(ToStrError),
NoReleases,
RepositoryNotFound,
AuthenticationError(u16),
ErrorHttpResponse(u16),
}
Expand description
Errors that may be raised by this crate.
Variants§
HttpClient(Error)
May arise from working with the HTTP client.
HeaderValue(InvalidHeaderValue)
May arise from working with the HTTP client.
HeaderToString(ToStrError)
May arise from working with the HTTP client.
NoReleases
May arise if the repository does not have any releases.
RepositoryNotFound
May arise from a mis-supplied repository, or from not having access.
AuthenticationError(u16)
May arise from GitHub API missing or incorrect authentication.
ErrorHttpResponse(u16)
May arise if GitHub returns an error code from the lookup.
Trait Implementations§
Source§impl Debug for LookupError
impl Debug for LookupError
Source§impl Display for LookupError
impl Display for LookupError
Source§impl Error for LookupError
impl Error for LookupError
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 LookupError
impl From<Error> for LookupError
Source§impl From<InvalidHeaderValue> for LookupError
impl From<InvalidHeaderValue> for LookupError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<ToStrError> for LookupError
impl From<ToStrError> for LookupError
Source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LookupError
impl !RefUnwindSafe for LookupError
impl Send for LookupError
impl Sync for LookupError
impl Unpin for LookupError
impl !UnwindSafe for LookupError
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