Enum gitlab::ErrorKind
[−]
pub enum ErrorKind {
Msg(String),
Reqwest(Error),
Communication,
UrlParse,
Gitlab(String),
Deserialize,
}The kind of an error.
Variants
Msg(String)A convenient variant for String.
Reqwest(Error)An error from the reqwest crate.
CommunicationError occurred when communicating with Gitlab.
UrlParseURL parsing error; should never occur.
Gitlab(String)Gitlab returned an error message.
DeserializeFailed to deserialize a Gitlab result into a structure.
Methods
impl ErrorKind
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error
impl Debug for ErrorKind
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more