Enum gitlab::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Communication, UrlParse, Gitlab(String), Deserialize, }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Communication
Error occurred when communicating with Gitlab.
UrlParse
URL parsing error; should never occur.
Gitlab(String)
Gitlab returned an error message.
Deserialize
Failed to deserialize a Gitlab result into a structure.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.