pub enum OpenstreetmapError {
Http(Error),
Url(ParseError),
Serde(DeError),
UrlEncode(Error),
Client {
code: StatusCode,
error: String,
},
Unauthorized,
MethodNotAllowed,
NotFound,
CredentialsNeeded,
}
Variants
Http(Error)
error associated with http request
Url(ParseError)
error caused by invalid URLs
Serde(DeError)
error associated with parsing or serializing
UrlEncode(Error)
error associated with parsing or serializing query strings
Client
client request errors
Unauthorized
invalid credentials
MethodNotAllowed
HTTP method is not allowed
NotFound
Page not found
CredentialsNeeded
Missing credentials for operation that requires authentication
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for OpenstreetmapError
impl Send for OpenstreetmapError
impl Sync for OpenstreetmapError
impl Unpin for OpenstreetmapError
impl !UnwindSafe for OpenstreetmapError
Blanket Implementations
Mutably borrows from an owned value. 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