Struct windows::Devices::Geolocation::Geofencing::Geofence
pub struct Geofence(/* private fields */);
Implementations§
§impl Geofence
impl Geofence
pub fn StartTime(&self) -> Result<DateTime>
pub fn Duration(&self) -> Result<TimeSpan>
pub fn DwellTime(&self) -> Result<TimeSpan>
pub fn Id(&self) -> Result<HSTRING>
pub fn MonitoredStates(&self) -> Result<MonitoredGeofenceStates>
pub fn Geoshape(&self) -> Result<IGeoshape>
pub fn SingleUse(&self) -> Result<bool>
pub fn Create<P0>(id: &HSTRING, geoshape: P0) -> Result<Geofence>where
P0: IntoParam<IGeoshape>,
pub fn CreateWithMonitorStates<P0>(
id: &HSTRING,
geoshape: P0,
monitoredstates: MonitoredGeofenceStates,
singleuse: bool
) -> Result<Geofence>where
P0: IntoParam<IGeoshape>,
pub fn CreateWithMonitorStatesAndDwellTime<P0>(
id: &HSTRING,
geoshape: P0,
monitoredstates: MonitoredGeofenceStates,
singleuse: bool,
dwelltime: TimeSpan
) -> Result<Geofence>where
P0: IntoParam<IGeoshape>,
pub fn CreateWithMonitorStatesDwellTimeStartTimeAndDuration<P0>(
id: &HSTRING,
geoshape: P0,
monitoredstates: MonitoredGeofenceStates,
singleuse: bool,
dwelltime: TimeSpan,
starttime: DateTime,
duration: TimeSpan
) -> Result<Geofence>where
P0: IntoParam<IGeoshape>,
Trait Implementations§
§impl From<&Geofence> for &IInspectable
impl From<&Geofence> for &IInspectable
§impl From<Geofence> for IInspectable
impl From<Geofence> for IInspectable
§impl Interface for Geofence
impl Interface for Geofence
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreimpl Eq for Geofence
impl Send for Geofence
impl StructuralPartialEq for Geofence
impl Sync for Geofence
Auto Trait Implementations§
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