Struct windows::Networking::Proximity::ProximityMessage
pub struct ProximityMessage(/* private fields */);
Implementations§
§impl ProximityMessage
impl ProximityMessage
pub fn MessageType(&self) -> Result<HSTRING>
pub fn SubscriptionId(&self) -> Result<i64>
pub fn Data(&self) -> Result<IBuffer>
pub fn DataAsString(&self) -> Result<HSTRING>
Trait Implementations§
§impl Clone for ProximityMessage
impl Clone for ProximityMessage
§fn clone(&self) -> ProximityMessage
fn clone(&self) -> ProximityMessage
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 ProximityMessage
impl Debug for ProximityMessage
§impl From<&ProximityMessage> for &IInspectable
impl From<&ProximityMessage> for &IInspectable
§fn from(value: &ProximityMessage) -> Self
fn from(value: &ProximityMessage) -> Self
Converts to this type from the input type.
§impl From<&ProximityMessage> for &IUnknown
impl From<&ProximityMessage> for &IUnknown
§fn from(value: &ProximityMessage) -> Self
fn from(value: &ProximityMessage) -> Self
Converts to this type from the input type.
§impl From<ProximityMessage> for IInspectable
impl From<ProximityMessage> for IInspectable
§fn from(value: ProximityMessage) -> Self
fn from(value: ProximityMessage) -> Self
Converts to this type from the input type.
§impl From<ProximityMessage> for IUnknown
impl From<ProximityMessage> for IUnknown
§fn from(value: ProximityMessage) -> Self
fn from(value: ProximityMessage) -> Self
Converts to this type from the input type.
§impl Interface for ProximityMessage
impl Interface for ProximityMessage
§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 ProximityMessage
impl PartialEq for ProximityMessage
§fn eq(&self, other: &ProximityMessage) -> bool
fn eq(&self, other: &ProximityMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProximityMessage
impl Send for ProximityMessage
impl StructuralPartialEq for ProximityMessage
impl Sync for ProximityMessage
Auto Trait Implementations§
impl RefUnwindSafe for ProximityMessage
impl Unpin for ProximityMessage
impl UnwindSafe for ProximityMessage
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