robius_location/error.rs
1pub type Result<T> = std::result::Result<T, Error>;
2
3/// An error that can occur when fetching the location.
4#[derive(Copy, Clone, Debug)]
5pub enum Error {
6 /// An error occurred with the Android Java environment.
7 AndroidEnvironment,
8 /// The user denied authorization.
9 AuthorizationDenied,
10 /// A network error occurred.
11 Network,
12 /// The function was not called from the main thread.
13 NotMainThread,
14 /// Location data is temporarily unavailable.
15 TemporarilyUnavailable,
16 /// Location is unsupported, or a required platform service or interface is unavailable.
17 PermanentlyUnavailable,
18 /// An unknown error occurred.
19 Unknown,
20}