Struct windows::Devices::WiFiDirect::Services::WiFiDirectServiceAdvertiser
pub struct WiFiDirectServiceAdvertiser(/* private fields */);
Implementations§
§impl WiFiDirectServiceAdvertiser
impl WiFiDirectServiceAdvertiser
pub fn ServiceName(&self) -> Result<HSTRING>
pub fn ServiceNamePrefixes(&self) -> Result<IVector<HSTRING>>
pub fn ServiceInfo(&self) -> Result<IBuffer>
pub fn SetServiceInfo<P0>(&self, value: P0) -> Result<()>where
P0: Param<IBuffer>,
pub fn AutoAcceptSession(&self) -> Result<bool>
pub fn SetAutoAcceptSession(&self, value: bool) -> Result<()>
pub fn PreferGroupOwnerMode(&self) -> Result<bool>
pub fn SetPreferGroupOwnerMode(&self, value: bool) -> Result<()>
pub fn PreferredConfigurationMethods( &self, ) -> Result<IVector<WiFiDirectServiceConfigurationMethod>>
pub fn ServiceStatus(&self) -> Result<WiFiDirectServiceStatus>
pub fn SetServiceStatus(&self, value: WiFiDirectServiceStatus) -> Result<()>
pub fn CustomServiceStatusCode(&self) -> Result<u32>
pub fn SetCustomServiceStatusCode(&self, value: u32) -> Result<()>
pub fn DeferredSessionInfo(&self) -> Result<IBuffer>
pub fn SetDeferredSessionInfo<P0>(&self, value: P0) -> Result<()>where
P0: Param<IBuffer>,
pub fn AdvertisementStatus( &self, ) -> Result<WiFiDirectServiceAdvertisementStatus>
pub fn ServiceError(&self) -> Result<WiFiDirectServiceError>
pub fn SessionRequested<P0>(
&self,
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<WiFiDirectServiceAdvertiser, WiFiDirectServiceSessionRequestedEventArgs>>,
pub fn RemoveSessionRequested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn AutoAcceptSessionConnected<P0>( &self, handler: P0, ) -> Result<EventRegistrationToken>
pub fn RemoveAutoAcceptSessionConnected( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn AdvertisementStatusChanged<P0>(
&self,
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<WiFiDirectServiceAdvertiser, IInspectable>>,
pub fn RemoveAdvertisementStatusChanged( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn ConnectAsync<P0>(
&self,
deviceinfo: P0,
) -> Result<IAsyncOperation<WiFiDirectServiceSession>>where
P0: Param<DeviceInformation>,
pub fn ConnectAsyncWithPin<P0>(
&self,
deviceinfo: P0,
pin: &HSTRING,
) -> Result<IAsyncOperation<WiFiDirectServiceSession>>where
P0: Param<DeviceInformation>,
pub fn Start(&self) -> Result<()>
pub fn Stop(&self) -> Result<()>
pub fn CreateWiFiDirectServiceAdvertiser( servicename: &HSTRING, ) -> Result<WiFiDirectServiceAdvertiser>
Trait Implementations§
§impl CanInto<IInspectable> for WiFiDirectServiceAdvertiser
impl CanInto<IInspectable> for WiFiDirectServiceAdvertiser
§impl CanInto<IUnknown> for WiFiDirectServiceAdvertiser
impl CanInto<IUnknown> for WiFiDirectServiceAdvertiser
§impl Clone for WiFiDirectServiceAdvertiser
impl Clone for WiFiDirectServiceAdvertiser
§fn clone(&self) -> WiFiDirectServiceAdvertiser
fn clone(&self) -> WiFiDirectServiceAdvertiser
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 WiFiDirectServiceAdvertiser
impl Debug for WiFiDirectServiceAdvertiser
§impl From<&WiFiDirectServiceAdvertiser> for &IInspectable
impl From<&WiFiDirectServiceAdvertiser> for &IInspectable
§fn from(value: &WiFiDirectServiceAdvertiser) -> Self
fn from(value: &WiFiDirectServiceAdvertiser) -> Self
Converts to this type from the input type.
§impl From<&WiFiDirectServiceAdvertiser> for &IUnknown
impl From<&WiFiDirectServiceAdvertiser> for &IUnknown
§fn from(value: &WiFiDirectServiceAdvertiser) -> Self
fn from(value: &WiFiDirectServiceAdvertiser) -> Self
Converts to this type from the input type.
§impl From<WiFiDirectServiceAdvertiser> for IInspectable
impl From<WiFiDirectServiceAdvertiser> for IInspectable
§fn from(value: WiFiDirectServiceAdvertiser) -> Self
fn from(value: WiFiDirectServiceAdvertiser) -> Self
Converts to this type from the input type.
§impl From<WiFiDirectServiceAdvertiser> for IUnknown
impl From<WiFiDirectServiceAdvertiser> for IUnknown
§fn from(value: WiFiDirectServiceAdvertiser) -> Self
fn from(value: WiFiDirectServiceAdvertiser) -> Self
Converts to this type from the input type.
§impl Interface for WiFiDirectServiceAdvertiser
impl Interface for WiFiDirectServiceAdvertiser
§const IID: GUID = <IWiFiDirectServiceAdvertiser as windows_core::Interface>::IID
const IID: GUID = <IWiFiDirectServiceAdvertiser 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 WiFiDirectServiceAdvertiser
impl PartialEq for WiFiDirectServiceAdvertiser
§fn eq(&self, other: &WiFiDirectServiceAdvertiser) -> bool
fn eq(&self, other: &WiFiDirectServiceAdvertiser) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WiFiDirectServiceAdvertiser
impl Send for WiFiDirectServiceAdvertiser
impl StructuralPartialEq for WiFiDirectServiceAdvertiser
impl Sync for WiFiDirectServiceAdvertiser
Auto Trait Implementations§
impl Freeze for WiFiDirectServiceAdvertiser
impl RefUnwindSafe for WiFiDirectServiceAdvertiser
impl Unpin for WiFiDirectServiceAdvertiser
impl UnwindSafe for WiFiDirectServiceAdvertiser
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
)