Enum gitlab::GitlabError [−][src]
#[non_exhaustive]
pub enum GitlabError {
UrlParse {
source: ParseError,
},
AuthError {
source: AuthError,
},
Communication {
source: Error,
},
Http {
status: StatusCode,
},
GraphQL {
message: Vec<Error>,
},
NoResponse {},
DataType {
source: Error,
typename: &'static str,
},
Api {
source: ApiError<RestError>,
},
}
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.
Fields of UrlParse
source: ParseError
Fields of AuthError
source: AuthError
Fields of Communication
source: Error
Fields of Http
status: StatusCode
Fields of NoResponse
Fields of Api
source: ApiError<RestError>
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for GitlabError
impl Send for GitlabError
impl Sync for GitlabError
impl Unpin for GitlabError
impl !UnwindSafe for GitlabError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more