pub struct GattServiceProvider(/* private fields */);
Implementations§
§impl GattServiceProvider
impl GattServiceProvider
pub fn Service(&self) -> Result<GattLocalService>
pub fn AdvertisementStatus( &self ) -> Result<GattServiceProviderAdvertisementStatus>
pub fn AdvertisementStatusChanged<P0>(
&self,
handler: P0
) -> Result<EventRegistrationToken>where
P0: IntoParam<TypedEventHandler<GattServiceProvider, GattServiceProviderAdvertisementStatusChangedEventArgs>>,
pub fn RemoveAdvertisementStatusChanged( &self, token: EventRegistrationToken ) -> Result<()>
pub fn StartAdvertising(&self) -> Result<()>
pub fn StartAdvertisingWithParameters<P0>(&self, parameters: P0) -> Result<()>where
P0: IntoParam<GattServiceProviderAdvertisingParameters>,
pub fn StopAdvertising(&self) -> Result<()>
pub fn CreateAsync( serviceuuid: GUID ) -> Result<IAsyncOperation<GattServiceProviderResult>>
Trait Implementations§
§impl Clone for GattServiceProvider
impl Clone for GattServiceProvider
§fn clone(&self) -> GattServiceProvider
fn clone(&self) -> GattServiceProvider
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 GattServiceProvider
impl Debug for GattServiceProvider
§impl From<&GattServiceProvider> for &IInspectable
impl From<&GattServiceProvider> for &IInspectable
§fn from(value: &GattServiceProvider) -> Self
fn from(value: &GattServiceProvider) -> Self
Converts to this type from the input type.
§impl From<&GattServiceProvider> for &IUnknown
impl From<&GattServiceProvider> for &IUnknown
§fn from(value: &GattServiceProvider) -> Self
fn from(value: &GattServiceProvider) -> Self
Converts to this type from the input type.
§impl From<GattServiceProvider> for IInspectable
impl From<GattServiceProvider> for IInspectable
§fn from(value: GattServiceProvider) -> Self
fn from(value: GattServiceProvider) -> Self
Converts to this type from the input type.
§impl From<GattServiceProvider> for IUnknown
impl From<GattServiceProvider> for IUnknown
§fn from(value: GattServiceProvider) -> Self
fn from(value: GattServiceProvider) -> Self
Converts to this type from the input type.
§impl Interface for GattServiceProvider
impl Interface for GattServiceProvider
§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 GattServiceProvider
impl PartialEq for GattServiceProvider
§fn eq(&self, other: &GattServiceProvider) -> bool
fn eq(&self, other: &GattServiceProvider) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GattServiceProvider
impl Send for GattServiceProvider
impl StructuralPartialEq for GattServiceProvider
impl Sync for GattServiceProvider
Auto Trait Implementations§
impl RefUnwindSafe for GattServiceProvider
impl Unpin for GattServiceProvider
impl UnwindSafe for GattServiceProvider
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