pub enum LocationOutcome {
Located {
lat: f64,
lon: f64,
accuracy_m: f64,
},
Unavailable(String),
}Expand description
What one request for the device’s position answered.
Variants§
Located
No position could be obtained: the service was missing, permission was denied, or no fix arrived. The reason is for the UI to show.
Trait Implementations§
Source§impl Clone for LocationOutcome
impl Clone for LocationOutcome
Source§impl Debug for LocationOutcome
impl Debug for LocationOutcome
Source§impl PartialEq for LocationOutcome
impl PartialEq for LocationOutcome
impl StructuralPartialEq for LocationOutcome
Auto Trait Implementations§
impl Forget for LocationOutcome
impl Freeze for LocationOutcome
impl Move for LocationOutcome
impl RefUnwindSafe for LocationOutcome
impl Send for LocationOutcome
impl Sync for LocationOutcome
impl Unpin for LocationOutcome
impl UnsafeUnpin for LocationOutcome
impl UnwindSafe for LocationOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more