Skip to main content

GeolocationResult

Type Alias GeolocationResult 

Source
pub type GeolocationResult = Result<GeolocationPositionData, GeolocationError>;
Expand description

The reply sent back to script for a one-shot position request, or for each update of an ongoing watch.

Aliased Type§

pub enum GeolocationResult {
    Ok(GeolocationPositionData),
    Err(GeolocationError),
}

Variants§

§1.0.0

Ok(GeolocationPositionData)

Contains the success value

§1.0.0

Err(GeolocationError)

Contains the error value