pub struct DeviceMonitorProxy { /* private fields */ }
Implementations§
Source§impl DeviceMonitorProxy
impl DeviceMonitorProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.wlan.device.service/DeviceMonitor.
Sourcepub fn take_event_stream(&self) -> DeviceMonitorEventStream
pub fn take_event_stream(&self) -> DeviceMonitorEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
pub fn list_phys( &self, ) -> QueryResponseFut<Vec<u16>, DefaultFuchsiaResourceDialect>
pub fn list_ifaces( &self, ) -> QueryResponseFut<Vec<u16>, DefaultFuchsiaResourceDialect>
pub fn get_dev_path( &self, phy_id: u16, ) -> QueryResponseFut<Option<String>, DefaultFuchsiaResourceDialect>
pub fn get_supported_mac_roles( &self, phy_id: u16, ) -> QueryResponseFut<DeviceMonitorGetSupportedMacRolesResult, DefaultFuchsiaResourceDialect>
pub fn watch_devices( &self, watcher: ServerEnd<DeviceWatcherMarker>, ) -> Result<(), Error>
pub fn get_country( &self, phy_id: u16, ) -> QueryResponseFut<DeviceMonitorGetCountryResult, DefaultFuchsiaResourceDialect>
pub fn set_country( &self, req: &SetCountryRequest, ) -> QueryResponseFut<i32, DefaultFuchsiaResourceDialect>
pub fn clear_country( &self, req: &ClearCountryRequest, ) -> QueryResponseFut<i32, DefaultFuchsiaResourceDialect>
pub fn set_power_save_mode( &self, req: &SetPowerSaveModeRequest, ) -> QueryResponseFut<i32, DefaultFuchsiaResourceDialect>
pub fn get_power_save_mode( &self, phy_id: u16, ) -> QueryResponseFut<DeviceMonitorGetPowerSaveModeResult, DefaultFuchsiaResourceDialect>
pub fn create_iface( &self, req: &CreateIfaceRequest, ) -> QueryResponseFut<(i32, Option<Box<CreateIfaceResponse>>), DefaultFuchsiaResourceDialect>
pub fn query_iface( &self, iface_id: u16, ) -> QueryResponseFut<DeviceMonitorQueryIfaceResult, DefaultFuchsiaResourceDialect>
pub fn destroy_iface( &self, req: &DestroyIfaceRequest, ) -> QueryResponseFut<i32, DefaultFuchsiaResourceDialect>
Sourcepub fn get_client_sme(
&self,
iface_id: u16,
sme_server: ServerEnd<ClientSmeMarker>,
) -> QueryResponseFut<DeviceMonitorGetClientSmeResult, DefaultFuchsiaResourceDialect>
pub fn get_client_sme( &self, iface_id: u16, sme_server: ServerEnd<ClientSmeMarker>, ) -> QueryResponseFut<DeviceMonitorGetClientSmeResult, DefaultFuchsiaResourceDialect>
Attempt to establish a new connection to a Client SME. Connections may be established for the whole lifetime of the SME, but concurrent connections might lead to unexpected behavior. Likely errors include: * NOT_FOUND: The given iface_id does not exist. * NOT_SUPPORTED: The underlying SME is not a Client SME. * PEER_CLOSED: The underlying SME is shutting down.
Sourcepub fn get_ap_sme(
&self,
iface_id: u16,
sme_server: ServerEnd<ApSmeMarker>,
) -> QueryResponseFut<DeviceMonitorGetApSmeResult, DefaultFuchsiaResourceDialect>
pub fn get_ap_sme( &self, iface_id: u16, sme_server: ServerEnd<ApSmeMarker>, ) -> QueryResponseFut<DeviceMonitorGetApSmeResult, DefaultFuchsiaResourceDialect>
Attempt to establish a new connection to an AP SME. Connections may be established for the whole lifetime of the SME, but concurrent connections might lead to unexpected behavior. Likely errors include: * NOT_FOUND: The given iface_id does not exist. * NOT_SUPPORTED: The underlying SME is not a Client SME. * PEER_CLOSED: The underlying SME is shutting down.
Sourcepub fn get_sme_telemetry(
&self,
iface_id: u16,
telemetry_server: ServerEnd<TelemetryMarker>,
) -> QueryResponseFut<DeviceMonitorGetSmeTelemetryResult, DefaultFuchsiaResourceDialect>
pub fn get_sme_telemetry( &self, iface_id: u16, telemetry_server: ServerEnd<TelemetryMarker>, ) -> QueryResponseFut<DeviceMonitorGetSmeTelemetryResult, DefaultFuchsiaResourceDialect>
Attempt to establish a new connection to telemetry for an SME. Connections may be established for the whole lifetime of the SME, and concurrent connections are safe since this is a read-only API. Likely errors include: * NOT_FOUND: The given iface_id does not exist. * NOT_SUPPORTED: The underlying SME is not a Client SME. * PEER_CLOSED: The underlying SME is shutting down.
Sourcepub fn get_feature_support(
&self,
iface_id: u16,
feature_support_server: ServerEnd<FeatureSupportMarker>,
) -> QueryResponseFut<DeviceMonitorGetFeatureSupportResult, DefaultFuchsiaResourceDialect>
pub fn get_feature_support( &self, iface_id: u16, feature_support_server: ServerEnd<FeatureSupportMarker>, ) -> QueryResponseFut<DeviceMonitorGetFeatureSupportResult, DefaultFuchsiaResourceDialect>
Attempt to establish a new connection to feature queries for an SME. Connections may be established for the whole lifetime of the SME, and concurrent connections are safe since this is a read-only API. Likely errors include: * NOT_FOUND: The given iface_id does not exist. * PEER_CLOSED: The underlying SME is shutting down.
Trait Implementations§
Source§impl Clone for DeviceMonitorProxy
impl Clone for DeviceMonitorProxy
Source§fn clone(&self) -> DeviceMonitorProxy
fn clone(&self) -> DeviceMonitorProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeviceMonitorProxy
impl Debug for DeviceMonitorProxy
Source§impl DeviceMonitorProxyInterface for DeviceMonitorProxy
impl DeviceMonitorProxyInterface for DeviceMonitorProxy
type ListPhysResponseFut = QueryResponseFut<Vec<u16>>
type ListIfacesResponseFut = QueryResponseFut<Vec<u16>>
type GetDevPathResponseFut = QueryResponseFut<Option<String>>
type GetSupportedMacRolesResponseFut = QueryResponseFut<Result<Vec<WlanMacRole>, i32>>
type GetCountryResponseFut = QueryResponseFut<Result<GetCountryResponse, i32>>
type SetCountryResponseFut = QueryResponseFut<i32>
type ClearCountryResponseFut = QueryResponseFut<i32>
type SetPowerSaveModeResponseFut = QueryResponseFut<i32>
type GetPowerSaveModeResponseFut = QueryResponseFut<Result<GetPowerSaveModeResponse, i32>>
type CreateIfaceResponseFut = QueryResponseFut<(i32, Option<Box<CreateIfaceResponse>>)>
type QueryIfaceResponseFut = QueryResponseFut<Result<QueryIfaceResponse, i32>>
type DestroyIfaceResponseFut = QueryResponseFut<i32>
type GetClientSmeResponseFut = QueryResponseFut<Result<(), i32>>
type GetApSmeResponseFut = QueryResponseFut<Result<(), i32>>
type GetSmeTelemetryResponseFut = QueryResponseFut<Result<(), i32>>
type GetFeatureSupportResponseFut = QueryResponseFut<Result<(), i32>>
fn list_phys(&self) -> Self::ListPhysResponseFut
fn list_ifaces(&self) -> Self::ListIfacesResponseFut
fn get_dev_path(&self, phy_id: u16) -> Self::GetDevPathResponseFut
fn get_supported_mac_roles( &self, phy_id: u16, ) -> Self::GetSupportedMacRolesResponseFut
fn watch_devices( &self, watcher: ServerEnd<DeviceWatcherMarker>, ) -> Result<(), Error>
fn get_country(&self, phy_id: u16) -> Self::GetCountryResponseFut
fn set_country(&self, req: &SetCountryRequest) -> Self::SetCountryResponseFut
fn clear_country( &self, req: &ClearCountryRequest, ) -> Self::ClearCountryResponseFut
fn set_power_save_mode( &self, req: &SetPowerSaveModeRequest, ) -> Self::SetPowerSaveModeResponseFut
fn get_power_save_mode(&self, phy_id: u16) -> Self::GetPowerSaveModeResponseFut
fn create_iface(&self, req: &CreateIfaceRequest) -> Self::CreateIfaceResponseFut
fn query_iface(&self, iface_id: u16) -> Self::QueryIfaceResponseFut
fn destroy_iface( &self, req: &DestroyIfaceRequest, ) -> Self::DestroyIfaceResponseFut
fn get_client_sme( &self, iface_id: u16, sme_server: ServerEnd<ClientSmeMarker>, ) -> Self::GetClientSmeResponseFut
fn get_ap_sme( &self, iface_id: u16, sme_server: ServerEnd<ApSmeMarker>, ) -> Self::GetApSmeResponseFut
fn get_sme_telemetry( &self, iface_id: u16, telemetry_server: ServerEnd<TelemetryMarker>, ) -> Self::GetSmeTelemetryResponseFut
fn get_feature_support( &self, iface_id: u16, feature_support_server: ServerEnd<FeatureSupportMarker>, ) -> Self::GetFeatureSupportResponseFut
Source§impl Proxy for DeviceMonitorProxy
impl Proxy for DeviceMonitorProxy
Source§type Protocol = DeviceMonitorMarker
type Protocol = DeviceMonitorMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for DeviceMonitorProxy
impl !RefUnwindSafe for DeviceMonitorProxy
impl Send for DeviceMonitorProxy
impl Sync for DeviceMonitorProxy
impl Unpin for DeviceMonitorProxy
impl !UnwindSafe for DeviceMonitorProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)