#[repr(C, u8)]pub enum GeolocationDiffEvent {
Subscribe {
config: GeolocationProbeConfig,
},
Release,
Reconfigure {
config: GeolocationProbeConfig,
},
}Expand description
Diff event the layout pass emits when a probe appears or disappears.
Symmetric to PermissionDiffEvent — drives the platform backend’s
native subscribe / release calls.
Variants§
Subscribe
First probe of this config landed in the layout — start a native subscription with these options.
Fields
§
config: GeolocationProbeConfigRelease
Last probe left — stop the native subscription.
Reconfigure
Probe config changed without subscriber churn — reconfigure the running subscription in place (e.g. high_accuracy false → true).
Fields
§
config: GeolocationProbeConfigTrait Implementations§
Source§impl Clone for GeolocationDiffEvent
impl Clone for GeolocationDiffEvent
Source§fn clone(&self) -> GeolocationDiffEvent
fn clone(&self) -> GeolocationDiffEvent
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 GeolocationDiffEvent
impl Debug for GeolocationDiffEvent
Source§impl PartialEq for GeolocationDiffEvent
impl PartialEq for GeolocationDiffEvent
Source§fn eq(&self, other: &GeolocationDiffEvent) -> bool
fn eq(&self, other: &GeolocationDiffEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GeolocationDiffEvent
impl StructuralPartialEq for GeolocationDiffEvent
Auto Trait Implementations§
impl Freeze for GeolocationDiffEvent
impl RefUnwindSafe for GeolocationDiffEvent
impl Send for GeolocationDiffEvent
impl Sync for GeolocationDiffEvent
impl Unpin for GeolocationDiffEvent
impl UnsafeUnpin for GeolocationDiffEvent
impl UnwindSafe for GeolocationDiffEvent
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> 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