Struct windows::Devices::Geolocation::GeovisitMonitor
pub struct GeovisitMonitor(/* private fields */);
Implementations§
§impl GeovisitMonitor
impl GeovisitMonitor
pub fn new() -> Result<Self>
pub fn MonitoringScope(&self) -> Result<VisitMonitoringScope>
pub fn Start(&self, value: VisitMonitoringScope) -> Result<()>
pub fn Stop(&self) -> Result<()>
pub fn VisitStateChanged<P0>( &self, handler: P0 ) -> Result<EventRegistrationToken>
pub fn RemoveVisitStateChanged( &self, token: EventRegistrationToken ) -> Result<()>
pub fn GetLastReportAsync() -> Result<IAsyncOperation<Geovisit>>
Trait Implementations§
§impl Clone for GeovisitMonitor
impl Clone for GeovisitMonitor
§fn clone(&self) -> GeovisitMonitor
fn clone(&self) -> GeovisitMonitor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GeovisitMonitor
impl Debug for GeovisitMonitor
§impl From<&GeovisitMonitor> for &IInspectable
impl From<&GeovisitMonitor> for &IInspectable
§fn from(value: &GeovisitMonitor) -> Self
fn from(value: &GeovisitMonitor) -> Self
Converts to this type from the input type.
§impl From<&GeovisitMonitor> for &IUnknown
impl From<&GeovisitMonitor> for &IUnknown
§fn from(value: &GeovisitMonitor) -> Self
fn from(value: &GeovisitMonitor) -> Self
Converts to this type from the input type.
§impl From<GeovisitMonitor> for IInspectable
impl From<GeovisitMonitor> for IInspectable
§fn from(value: GeovisitMonitor) -> Self
fn from(value: GeovisitMonitor) -> Self
Converts to this type from the input type.
§impl From<GeovisitMonitor> for IUnknown
impl From<GeovisitMonitor> for IUnknown
§fn from(value: GeovisitMonitor) -> Self
fn from(value: GeovisitMonitor) -> Self
Converts to this type from the input type.
§impl Interface for GeovisitMonitor
impl Interface for GeovisitMonitor
§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 more§impl PartialEq for GeovisitMonitor
impl PartialEq for GeovisitMonitor
§fn eq(&self, other: &GeovisitMonitor) -> bool
fn eq(&self, other: &GeovisitMonitor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GeovisitMonitor
impl Send for GeovisitMonitor
impl StructuralPartialEq for GeovisitMonitor
impl Sync for GeovisitMonitor
Auto Trait Implementations§
impl RefUnwindSafe for GeovisitMonitor
impl Unpin for GeovisitMonitor
impl UnwindSafe for GeovisitMonitor
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