windows::Devices::Sms

Trait ISmsDevice_Impl

pub trait ISmsDevice_Impl: IUnknownImpl {
    // Required methods
    fn SendMessageAsync(
        &self,
        message: Ref<'_, ISmsMessage>,
    ) -> Result<SendSmsMessageOperation>;
    fn CalculateLength(
        &self,
        message: Ref<'_, SmsTextMessage>,
    ) -> Result<SmsEncodedLength>;
    fn AccountPhoneNumber(&self) -> Result<HSTRING>;
    fn CellularClass(&self) -> Result<CellularClass>;
    fn MessageStore(&self) -> Result<SmsDeviceMessageStore>;
    fn DeviceStatus(&self) -> Result<SmsDeviceStatus>;
    fn SmsMessageReceived(
        &self,
        eventHandler: Ref<'_, SmsMessageReceivedEventHandler>,
    ) -> Result<i64>;
    fn RemoveSmsMessageReceived(&self, eventCookie: i64) -> Result<()>;
    fn SmsDeviceStatusChanged(
        &self,
        eventHandler: Ref<'_, SmsDeviceStatusChangedEventHandler>,
    ) -> Result<i64>;
    fn RemoveSmsDeviceStatusChanged(&self, eventCookie: i64) -> Result<()>;
}

Required Methods§

fn SendMessageAsync( &self, message: Ref<'_, ISmsMessage>, ) -> Result<SendSmsMessageOperation>

fn CalculateLength( &self, message: Ref<'_, SmsTextMessage>, ) -> Result<SmsEncodedLength>

fn AccountPhoneNumber(&self) -> Result<HSTRING>

fn CellularClass(&self) -> Result<CellularClass>

fn MessageStore(&self) -> Result<SmsDeviceMessageStore>

fn DeviceStatus(&self) -> Result<SmsDeviceStatus>

fn SmsMessageReceived( &self, eventHandler: Ref<'_, SmsMessageReceivedEventHandler>, ) -> Result<i64>

fn RemoveSmsMessageReceived(&self, eventCookie: i64) -> Result<()>

fn SmsDeviceStatusChanged( &self, eventHandler: Ref<'_, SmsDeviceStatusChangedEventHandler>, ) -> Result<i64>

fn RemoveSmsDeviceStatusChanged(&self, eventCookie: i64) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§