pub struct GeolocationOptions {
pub enable_high_accuracy: bool,
pub timeout_ms: u64,
pub maximum_age_ms: u64,
pub allow_ip_fallback: bool,
}Expand description
Options for acquiring geolocation.
Fields§
§enable_high_accuracy: bool§timeout_ms: u64§maximum_age_ms: u64§allow_ip_fallback: boolPermit coarse HTTPS GeoIP fallback on desktop workstations lacking GPS/OS daemons.
Trait Implementations§
Source§impl Clone for GeolocationOptions
impl Clone for GeolocationOptions
Source§fn clone(&self) -> GeolocationOptions
fn clone(&self) -> GeolocationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeolocationOptions
impl Debug for GeolocationOptions
Source§impl Default for GeolocationOptions
impl Default for GeolocationOptions
Source§fn default() -> GeolocationOptions
fn default() -> GeolocationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for GeolocationOptions
impl Freeze for GeolocationOptions
impl Move for GeolocationOptions
impl RefUnwindSafe for GeolocationOptions
impl Send for GeolocationOptions
impl Sync for GeolocationOptions
impl Unpin for GeolocationOptions
impl UnsafeUnpin for GeolocationOptions
impl UnwindSafe for GeolocationOptions
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