Enum google_api_proto::maps::fleetengine::v1::LocationSensor
source · #[repr(i32)]pub enum LocationSensor {
UnknownSensor = 0,
Gps = 1,
Network = 2,
Passive = 3,
RoadSnappedLocationProvider = 4,
CustomerSuppliedLocation = 5,
FleetEngineLocation = 6,
FusedLocationProvider = 100,
CoreLocation = 200,
}
Expand description
The sensor or methodology used to determine the location.
Variants§
UnknownSensor = 0
The sensor is unspecified or unknown.
Gps = 1
GPS or Assisted GPS.
Network = 2
Assisted GPS, cell tower ID, or WiFi access point.
Passive = 3
Cell tower ID or WiFi access point.
RoadSnappedLocationProvider = 4
A location determined by the mobile device to be the most likely road position.
CustomerSuppliedLocation = 5
A customer-supplied location from an independent source. Typically, this
value is used for a location provided from sources other than the mobile
device running Driver SDK. If the original source is described by one of
the other enum values, use that value. Locations marked
CUSTOMER_SUPPLIED_LOCATION are typically provided via a Vehicle’s
last_location.supplemental_location_sensor
.
FleetEngineLocation = 6
A location calculated by Fleet Engine based on the signals available to it. Output only. This value will be rejected if it is received in a request.
FusedLocationProvider = 100
Android’s Fused Location Provider.
CoreLocation = 200
The location provider on Apple operating systems.
Implementations§
source§impl LocationSensor
impl LocationSensor
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for LocationSensor
impl Clone for LocationSensor
source§fn clone(&self) -> LocationSensor
fn clone(&self) -> LocationSensor
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationSensor
impl Debug for LocationSensor
source§impl Default for LocationSensor
impl Default for LocationSensor
source§fn default() -> LocationSensor
fn default() -> LocationSensor
source§impl From<LocationSensor> for i32
impl From<LocationSensor> for i32
source§fn from(value: LocationSensor) -> i32
fn from(value: LocationSensor) -> i32
source§impl Hash for LocationSensor
impl Hash for LocationSensor
source§impl Ord for LocationSensor
impl Ord for LocationSensor
source§fn cmp(&self, other: &LocationSensor) -> Ordering
fn cmp(&self, other: &LocationSensor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for LocationSensor
impl PartialEq for LocationSensor
source§fn eq(&self, other: &LocationSensor) -> bool
fn eq(&self, other: &LocationSensor) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LocationSensor
impl PartialOrd for LocationSensor
source§fn partial_cmp(&self, other: &LocationSensor) -> Option<Ordering>
fn partial_cmp(&self, other: &LocationSensor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for LocationSensor
impl TryFrom<i32> for LocationSensor
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<LocationSensor, UnknownEnumValue>
fn try_from(value: i32) -> Result<LocationSensor, UnknownEnumValue>
impl Copy for LocationSensor
impl Eq for LocationSensor
impl StructuralPartialEq for LocationSensor
Auto Trait Implementations§
impl Freeze for LocationSensor
impl RefUnwindSafe for LocationSensor
impl Send for LocationSensor
impl Sync for LocationSensor
impl Unpin for LocationSensor
impl UnwindSafe for LocationSensor
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
§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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request