Struct windows::Devices::WiFi::WiFiAdapter
pub struct WiFiAdapter(/* private fields */);
Implementations§
§impl WiFiAdapter
impl WiFiAdapter
pub fn NetworkAdapter(&self) -> Result<NetworkAdapter>
pub fn ScanAsync(&self) -> Result<IAsyncAction>
pub fn NetworkReport(&self) -> Result<WiFiNetworkReport>
pub fn AvailableNetworksChanged<P0>( &self, args: P0 ) -> Result<EventRegistrationToken>
pub fn RemoveAvailableNetworksChanged( &self, eventcookie: EventRegistrationToken ) -> Result<()>
pub fn ConnectAsync<P0>(
&self,
availablenetwork: P0,
reconnectionkind: WiFiReconnectionKind
) -> Result<IAsyncOperation<WiFiConnectionResult>>where
P0: IntoParam<WiFiAvailableNetwork>,
pub fn ConnectWithPasswordCredentialAsync<P0, P1>(
&self,
availablenetwork: P0,
reconnectionkind: WiFiReconnectionKind,
passwordcredential: P1
) -> Result<IAsyncOperation<WiFiConnectionResult>>where
P0: IntoParam<WiFiAvailableNetwork>,
P1: IntoParam<PasswordCredential>,
pub fn ConnectWithPasswordCredentialAndSsidAsync<P0, P1>(
&self,
availablenetwork: P0,
reconnectionkind: WiFiReconnectionKind,
passwordcredential: P1,
ssid: &HSTRING
) -> Result<IAsyncOperation<WiFiConnectionResult>>where
P0: IntoParam<WiFiAvailableNetwork>,
P1: IntoParam<PasswordCredential>,
pub fn Disconnect(&self) -> Result<()>
pub fn GetWpsConfigurationAsync<P0>(
&self,
availablenetwork: P0
) -> Result<IAsyncOperation<WiFiWpsConfigurationResult>>where
P0: IntoParam<WiFiAvailableNetwork>,
pub fn ConnectWithPasswordCredentialAndSsidAndConnectionMethodAsync<P0, P1>(
&self,
availablenetwork: P0,
reconnectionkind: WiFiReconnectionKind,
passwordcredential: P1,
ssid: &HSTRING,
connectionmethod: WiFiConnectionMethod
) -> Result<IAsyncOperation<WiFiConnectionResult>>where
P0: IntoParam<WiFiAvailableNetwork>,
P1: IntoParam<PasswordCredential>,
pub fn FindAllAdaptersAsync( ) -> Result<IAsyncOperation<IVectorView<WiFiAdapter>>>
pub fn GetDeviceSelector() -> Result<HSTRING>
pub fn FromIdAsync(deviceid: &HSTRING) -> Result<IAsyncOperation<WiFiAdapter>>
pub fn RequestAccessAsync() -> Result<IAsyncOperation<WiFiAccessStatus>>
Trait Implementations§
§impl Clone for WiFiAdapter
impl Clone for WiFiAdapter
§fn clone(&self) -> WiFiAdapter
fn clone(&self) -> WiFiAdapter
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 WiFiAdapter
impl Debug for WiFiAdapter
§impl From<&WiFiAdapter> for &IInspectable
impl From<&WiFiAdapter> for &IInspectable
§fn from(value: &WiFiAdapter) -> Self
fn from(value: &WiFiAdapter) -> Self
Converts to this type from the input type.
§impl From<&WiFiAdapter> for &IUnknown
impl From<&WiFiAdapter> for &IUnknown
§fn from(value: &WiFiAdapter) -> Self
fn from(value: &WiFiAdapter) -> Self
Converts to this type from the input type.
§impl From<WiFiAdapter> for IInspectable
impl From<WiFiAdapter> for IInspectable
§fn from(value: WiFiAdapter) -> Self
fn from(value: WiFiAdapter) -> Self
Converts to this type from the input type.
§impl From<WiFiAdapter> for IUnknown
impl From<WiFiAdapter> for IUnknown
§fn from(value: WiFiAdapter) -> Self
fn from(value: WiFiAdapter) -> Self
Converts to this type from the input type.
§impl Interface for WiFiAdapter
impl Interface for WiFiAdapter
§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 WiFiAdapter
impl PartialEq for WiFiAdapter
§fn eq(&self, other: &WiFiAdapter) -> bool
fn eq(&self, other: &WiFiAdapter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WiFiAdapter
impl Send for WiFiAdapter
impl StructuralPartialEq for WiFiAdapter
impl Sync for WiFiAdapter
Auto Trait Implementations§
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