Skip to main content

LocationProvider

Trait LocationProvider 

pub trait LocationProvider: Send + Sync {
    // Required method
    fn locate(&self) -> Receiver<LocationOutcome>;
}
Expand description

Host-provided device location.

Required Methods§

fn locate(&self) -> Receiver<LocationOutcome>

Request one fix. Answers over the channel, never blocking the caller.

Implementors§