Trait windows::Win32::Devices::Geolocation::ILocation_Impl

pub trait ILocation_Impl: Sized {
    // Required methods
    fn RegisterForReport(
        &self,
        pevents: Option<&ILocationEvents>,
        reporttype: *const GUID,
        dwrequestedreportinterval: u32,
    ) -> Result<()>;
    fn UnregisterForReport(&self, reporttype: *const GUID) -> Result<()>;
    fn GetReport(&self, reporttype: *const GUID) -> Result<ILocationReport>;
    fn GetReportStatus(
        &self,
        reporttype: *const GUID,
    ) -> Result<LOCATION_REPORT_STATUS>;
    fn GetReportInterval(&self, reporttype: *const GUID) -> Result<u32>;
    fn SetReportInterval(
        &self,
        reporttype: *const GUID,
        millisecondsrequested: u32,
    ) -> Result<()>;
    fn GetDesiredAccuracy(
        &self,
        reporttype: *const GUID,
    ) -> Result<LOCATION_DESIRED_ACCURACY>;
    fn SetDesiredAccuracy(
        &self,
        reporttype: *const GUID,
        desiredaccuracy: LOCATION_DESIRED_ACCURACY,
    ) -> Result<()>;
    fn RequestPermissions(
        &self,
        hparent: HWND,
        preporttypes: *const GUID,
        count: u32,
        fmodal: BOOL,
    ) -> Result<()>;
}

Required Methods§

fn RegisterForReport( &self, pevents: Option<&ILocationEvents>, reporttype: *const GUID, dwrequestedreportinterval: u32, ) -> Result<()>

fn UnregisterForReport(&self, reporttype: *const GUID) -> Result<()>

fn GetReport(&self, reporttype: *const GUID) -> Result<ILocationReport>

fn GetReportStatus( &self, reporttype: *const GUID, ) -> Result<LOCATION_REPORT_STATUS>

fn GetReportInterval(&self, reporttype: *const GUID) -> Result<u32>

fn SetReportInterval( &self, reporttype: *const GUID, millisecondsrequested: u32, ) -> Result<()>

fn GetDesiredAccuracy( &self, reporttype: *const GUID, ) -> Result<LOCATION_DESIRED_ACCURACY>

fn SetDesiredAccuracy( &self, reporttype: *const GUID, desiredaccuracy: LOCATION_DESIRED_ACCURACY, ) -> Result<()>

fn RequestPermissions( &self, hparent: HWND, preporttypes: *const GUID, count: u32, fmodal: BOOL, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§