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
sourceimpl Debug for OpenstreetmapError
impl Debug for OpenstreetmapError
sourceimpl Display for OpenstreetmapError
impl Display for OpenstreetmapError
sourceimpl Error for OpenstreetmapError
impl Error for OpenstreetmapError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<DeError> for OpenstreetmapError
impl From<DeError> for OpenstreetmapError
sourceimpl From<Error> for OpenstreetmapError
impl From<Error> for OpenstreetmapError
sourceimpl From<Error> for OpenstreetmapError
impl From<Error> for OpenstreetmapError
sourceimpl From<ParseError> for OpenstreetmapError
impl From<ParseError> for OpenstreetmapError
sourcefn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more