pub struct PositionOptions {
pub enable_high_accuracy: bool,
pub timeout: u32,
pub maximum_age: u32,
}
Fields§
§enable_high_accuracy: bool
High accuracy mode (such as GPS, if available) Will be ignored on Android 12+ if users didn’t grant the ACCESS_FINE_LOCATION permission.
timeout: u32
The maximum wait time in milliseconds for location updates. Default: 10000 On Android the timeout gets ignored for getCurrentPosition. Ignored on iOS.
maximum_age: u32
The maximum age in milliseconds of a possible cached position that is acceptable to return. Default: 0 Ignored on iOS.
Trait Implementations§
Source§impl Clone for PositionOptions
impl Clone for PositionOptions
Source§fn clone(&self) -> PositionOptions
fn clone(&self) -> PositionOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PositionOptions
impl Debug for PositionOptions
Source§impl Default for PositionOptions
impl Default for PositionOptions
Source§fn default() -> PositionOptions
fn default() -> PositionOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PositionOptions
impl<'de> Deserialize<'de> for PositionOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PositionOptions
impl RefUnwindSafe for PositionOptions
impl Send for PositionOptions
impl Sync for PositionOptions
impl Unpin for PositionOptions
impl UnwindSafe for PositionOptions
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