Struct windows::Networking::Proximity::ProximityDevice
pub struct ProximityDevice(/* private fields */);
Implementations§
§impl ProximityDevice
impl ProximityDevice
pub fn SubscribeForMessage<P0>(
&self,
messagetype: &HSTRING,
messagereceivedhandler: P0,
) -> Result<i64>where
P0: Param<MessageReceivedHandler>,
pub fn PublishMessage( &self, messagetype: &HSTRING, message: &HSTRING, ) -> Result<i64>
pub fn PublishMessageWithCallback<P0>(
&self,
messagetype: &HSTRING,
message: &HSTRING,
messagetransmittedhandler: P0,
) -> Result<i64>where
P0: Param<MessageTransmittedHandler>,
pub fn PublishBinaryMessage<P0>(
&self,
messagetype: &HSTRING,
message: P0,
) -> Result<i64>where
P0: Param<IBuffer>,
pub fn PublishBinaryMessageWithCallback<P0, P1>(
&self,
messagetype: &HSTRING,
message: P0,
messagetransmittedhandler: P1,
) -> Result<i64>where
P0: Param<IBuffer>,
P1: Param<MessageTransmittedHandler>,
pub fn PublishUriMessage<P0>(&self, message: P0) -> Result<i64>where
P0: Param<Uri>,
pub fn PublishUriMessageWithCallback<P0, P1>(
&self,
message: P0,
messagetransmittedhandler: P1,
) -> Result<i64>where
P0: Param<Uri>,
P1: Param<MessageTransmittedHandler>,
pub fn StopSubscribingForMessage(&self, subscriptionid: i64) -> Result<()>
pub fn StopPublishingMessage(&self, messageid: i64) -> Result<()>
pub fn DeviceArrived<P0>(
&self,
arrivedhandler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<DeviceArrivedEventHandler>,
pub fn RemoveDeviceArrived(&self, cookie: EventRegistrationToken) -> Result<()>
pub fn DeviceDeparted<P0>(
&self,
departedhandler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<DeviceDepartedEventHandler>,
pub fn RemoveDeviceDeparted(&self, cookie: EventRegistrationToken) -> Result<()>
pub fn MaxMessageBytes(&self) -> Result<u32>
pub fn BitsPerSecond(&self) -> Result<u64>
pub fn DeviceId(&self) -> Result<HSTRING>
pub fn GetDeviceSelector() -> Result<HSTRING>
pub fn GetDefault() -> Result<ProximityDevice>
pub fn FromId(deviceid: &HSTRING) -> Result<ProximityDevice>
Trait Implementations§
§impl CanInto<IInspectable> for ProximityDevice
impl CanInto<IInspectable> for ProximityDevice
§impl CanInto<IUnknown> for ProximityDevice
impl CanInto<IUnknown> for ProximityDevice
§impl Clone for ProximityDevice
impl Clone for ProximityDevice
§fn clone(&self) -> ProximityDevice
fn clone(&self) -> ProximityDevice
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 ProximityDevice
impl Debug for ProximityDevice
§impl From<&ProximityDevice> for &IInspectable
impl From<&ProximityDevice> for &IInspectable
§fn from(value: &ProximityDevice) -> Self
fn from(value: &ProximityDevice) -> Self
Converts to this type from the input type.
§impl From<&ProximityDevice> for &IUnknown
impl From<&ProximityDevice> for &IUnknown
§fn from(value: &ProximityDevice) -> Self
fn from(value: &ProximityDevice) -> Self
Converts to this type from the input type.
§impl From<ProximityDevice> for IInspectable
impl From<ProximityDevice> for IInspectable
§fn from(value: ProximityDevice) -> Self
fn from(value: ProximityDevice) -> Self
Converts to this type from the input type.
§impl From<ProximityDevice> for IUnknown
impl From<ProximityDevice> for IUnknown
§fn from(value: ProximityDevice) -> Self
fn from(value: ProximityDevice) -> Self
Converts to this type from the input type.
§impl Interface for ProximityDevice
impl Interface for ProximityDevice
§const IID: GUID = <IProximityDevice as windows_core::Interface>::IID
const IID: GUID = <IProximityDevice as windows_core::Interface>::IID
The
GUID
associated with the interface.§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for ProximityDevice
impl PartialEq for ProximityDevice
§fn eq(&self, other: &ProximityDevice) -> bool
fn eq(&self, other: &ProximityDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProximityDevice
impl Send for ProximityDevice
impl StructuralPartialEq for ProximityDevice
impl Sync for ProximityDevice
Auto Trait Implementations§
impl Freeze for ProximityDevice
impl RefUnwindSafe for ProximityDevice
impl Unpin for ProximityDevice
impl UnwindSafe for ProximityDevice
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)