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
invalid credentials
MethodNotAllowed
HTTP method is not allowed
NotFound
Page not found
CredentialsNeeded
Missing credentials for operation that requires authentication
Trait Implementations§
Source§impl Debug for OpenstreetmapError
impl Debug for OpenstreetmapError
Source§impl Display for OpenstreetmapError
impl Display for OpenstreetmapError
Source§impl Error for OpenstreetmapError
impl Error for OpenstreetmapError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DeError> for OpenstreetmapError
impl From<DeError> for OpenstreetmapError
Source§impl From<Error> for OpenstreetmapError
impl From<Error> for OpenstreetmapError
Source§impl From<Error> for OpenstreetmapError
impl From<Error> for OpenstreetmapError
Source§impl From<ParseError> for OpenstreetmapError
impl From<ParseError> for OpenstreetmapError
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenstreetmapError
impl !RefUnwindSafe for OpenstreetmapError
impl Send for OpenstreetmapError
impl Sync for OpenstreetmapError
impl Unpin for OpenstreetmapError
impl !UnwindSafe for OpenstreetmapError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more