Struct windows::Devices::Bluetooth::GenericAttributeProfile::GattReadResult
pub struct GattReadResult(/* private fields */);
Implementations§
§impl GattReadResult
impl GattReadResult
pub fn Status(&self) -> Result<GattCommunicationStatus>
pub fn Value(&self) -> Result<IBuffer>
pub fn ProtocolError(&self) -> Result<IReference<u8>>
Trait Implementations§
§impl Clone for GattReadResult
impl Clone for GattReadResult
§fn clone(&self) -> GattReadResult
fn clone(&self) -> GattReadResult
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 GattReadResult
impl Debug for GattReadResult
§impl From<&GattReadResult> for &IInspectable
impl From<&GattReadResult> for &IInspectable
§fn from(value: &GattReadResult) -> Self
fn from(value: &GattReadResult) -> Self
Converts to this type from the input type.
§impl From<&GattReadResult> for &IUnknown
impl From<&GattReadResult> for &IUnknown
§fn from(value: &GattReadResult) -> Self
fn from(value: &GattReadResult) -> Self
Converts to this type from the input type.
§impl From<GattReadResult> for IInspectable
impl From<GattReadResult> for IInspectable
§fn from(value: GattReadResult) -> Self
fn from(value: GattReadResult) -> Self
Converts to this type from the input type.
§impl From<GattReadResult> for IUnknown
impl From<GattReadResult> for IUnknown
§fn from(value: GattReadResult) -> Self
fn from(value: GattReadResult) -> Self
Converts to this type from the input type.
§impl Interface for GattReadResult
impl Interface for GattReadResult
§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 GattReadResult
impl PartialEq for GattReadResult
§fn eq(&self, other: &GattReadResult) -> bool
fn eq(&self, other: &GattReadResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GattReadResult
impl Send for GattReadResult
impl StructuralPartialEq for GattReadResult
impl Sync for GattReadResult
Auto Trait Implementations§
impl RefUnwindSafe for GattReadResult
impl Unpin for GattReadResult
impl UnwindSafe for GattReadResult
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