#[repr(C)]pub struct GeolocationProbeConfig {
pub high_accuracy: bool,
pub background: bool,
pub max_accuracy_m: f32,
pub min_interval_ms: u32,
}Expand description
Configuration the user attaches to a NodeType::GeolocationProbe
to tune the platform subscription. Maps to W3C PositionOptions
(enableHighAccuracy + maximumAge + timeout).
Fields§
§high_accuracy: booltrue requests precise (GPS-driven) location. iOS maps this to
CLLocationManager.desiredAccuracy = kCLLocationAccuracyBest;
Android to LocationRequest.PRIORITY_HIGH_ACCURACY. Costs
battery — leave false for city-block-level apps.
background: boolSubscribe to background location updates. Requires extra
per-platform manifest declarations and a separate
Capability::GeolocationBackground permission grant. false
is the safe default.
max_accuracy_m: f32Reject any fix whose accuracy_m exceeds this radius. 0
disables the filter — every native sample is delivered.
min_interval_ms: u32Minimum time between delivered updates, in milliseconds. 0
disables throttling (every native sample is delivered;
expensive when the platform fires at 10 Hz indoors).
Trait Implementations§
Source§impl Clone for GeolocationProbeConfig
impl Clone for GeolocationProbeConfig
Source§fn clone(&self) -> GeolocationProbeConfig
fn clone(&self) -> GeolocationProbeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeolocationProbeConfig
impl Debug for GeolocationProbeConfig
Source§impl Default for GeolocationProbeConfig
impl Default for GeolocationProbeConfig
Source§fn default() -> GeolocationProbeConfig
fn default() -> GeolocationProbeConfig
Source§impl Hash for GeolocationProbeConfig
impl Hash for GeolocationProbeConfig
Source§impl Ord for GeolocationProbeConfig
impl Ord for GeolocationProbeConfig
Source§fn cmp(&self, other: &GeolocationProbeConfig) -> Ordering
fn cmp(&self, other: &GeolocationProbeConfig) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for GeolocationProbeConfig
impl PartialEq for GeolocationProbeConfig
Source§fn eq(&self, other: &GeolocationProbeConfig) -> bool
fn eq(&self, other: &GeolocationProbeConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GeolocationProbeConfig
impl PartialOrd for GeolocationProbeConfig
impl Copy for GeolocationProbeConfig
impl Eq for GeolocationProbeConfig
impl StructuralPartialEq for GeolocationProbeConfig
Auto Trait Implementations§
impl Freeze for GeolocationProbeConfig
impl RefUnwindSafe for GeolocationProbeConfig
impl Send for GeolocationProbeConfig
impl Sync for GeolocationProbeConfig
impl Unpin for GeolocationProbeConfig
impl UnsafeUnpin for GeolocationProbeConfig
impl UnwindSafe for GeolocationProbeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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