pub enum Error {
AndroidEnvironment,
AuthorizationDenied,
Network,
NotMainThread,
TemporarilyUnavailable,
PermanentlyUnavailable,
Unknown,
}Expand description
An error that can occur when fetching the location.
Variants§
AndroidEnvironment
An error occurred with the Android Java environment.
AuthorizationDenied
The user denied authorization.
Network
A network error occurred.
NotMainThread
The function was not called from the main thread.
Location data is temporarily unavailable.
Location is unsupported, or a required platform service or interface is unavailable.
Unknown
An unknown error occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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