Trait fractal::utils::location::LocationExt

source ·
pub trait LocationExt: 'static {
    // Required methods
    fn is_available(&self) -> bool;
    async fn init(&self) -> Result<(), LocationError>;
    async fn updates_stream(
        &self,
    ) -> Result<impl Stream<Item = GeoUri> + '_, LocationError>;
}

Required Methods§

source

fn is_available(&self) -> bool

Whether the location API is available.

source

async fn init(&self) -> Result<(), LocationError>

Initialize the location API.

source

async fn updates_stream( &self, ) -> Result<impl Stream<Item = GeoUri> + '_, LocationError>

Listen to a stream of location updates.

Object Safety§

This trait is not object safe.

Implementors§