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_supported_mac_roles( &self, phy_id: u16, ) -> QueryResponseFut<DeviceMonitorGetSupportedMacRolesResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn watch_devices( &self, watcher: ServerEnd<DeviceWatcherMarker>, ) -> Result<(), Error>
pub fn watch_phy_events( &self, watcher: ServerEnd<PhyEventWatcherMarker>, ) -> 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> ⓘ
Sourcepub fn reset(
&self,
phy_id: u16,
) -> QueryResponseFut<DeviceMonitorResetResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn reset( &self, phy_id: u16, ) -> QueryResponseFut<DeviceMonitorResetResult, DefaultFuchsiaResourceDialect> ⓘ
If supported, the wlan driver will reset the wlan chip. An attempt is made to delete any existing interfaces. Refer to wlan.phyimpl fidl for more details.
Sourcepub fn set_tx_power_scenario(
&self,
phy_id: u16,
scenario: TxPowerScenario,
) -> QueryResponseFut<DeviceMonitorSetTxPowerScenarioResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn set_tx_power_scenario( &self, phy_id: u16, scenario: TxPowerScenario, ) -> QueryResponseFut<DeviceMonitorSetTxPowerScenarioResult, DefaultFuchsiaResourceDialect> ⓘ
Applies the provided TxPowerScenario to the specified PHY.
Sourcepub fn reset_tx_power_scenario(
&self,
phy_id: u16,
) -> QueryResponseFut<DeviceMonitorResetTxPowerScenarioResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn reset_tx_power_scenario( &self, phy_id: u16, ) -> QueryResponseFut<DeviceMonitorResetTxPowerScenarioResult, DefaultFuchsiaResourceDialect> ⓘ
Clears any existing TxPowerScenario that has been applied and resets the PHY to use its default TxPowerScenario.
Sourcepub fn get_tx_power_scenario(
&self,
phy_id: u16,
) -> QueryResponseFut<DeviceMonitorGetTxPowerScenarioResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_tx_power_scenario( &self, phy_id: u16, ) -> QueryResponseFut<DeviceMonitorGetTxPowerScenarioResult, DefaultFuchsiaResourceDialect> ⓘ
Queries the current TxPowerScenario setting for the specified PHY.
Sourcepub fn get_power_element_dependency_token(
&self,
phy_id: u16,
) -> QueryResponseFut<DeviceMonitorGetPowerElementDependencyTokenResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_power_element_dependency_token( &self, phy_id: u16, ) -> QueryResponseFut<DeviceMonitorGetPowerElementDependencyTokenResult, DefaultFuchsiaResourceDialect> ⓘ
Returns the dependency token for the PHY if power control is supported.
Sourcepub fn get_power_state(
&self,
phy_id: u16,
) -> QueryResponseFut<DeviceMonitorGetPowerStateResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_power_state( &self, phy_id: u16, ) -> QueryResponseFut<DeviceMonitorGetPowerStateResult, DefaultFuchsiaResourceDialect> ⓘ
This will return the current power state of the wlan chip.
Sourcepub fn set_bt_coexistence_mode(
&self,
phy_id: u16,
mode: BtCoexistenceMode,
) -> QueryResponseFut<DeviceMonitorSetBtCoexistenceModeResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn set_bt_coexistence_mode( &self, phy_id: u16, mode: BtCoexistenceMode, ) -> QueryResponseFut<DeviceMonitorSetBtCoexistenceModeResult, DefaultFuchsiaResourceDialect> ⓘ
Set the Bluetooth coexistence mode. Likely errors include: * NOT_FOUND: The given phy_id does not exist. * NOT_SUPPORTED: The specified BT coexistence mode is not supported.
pub fn create_iface( &self, payload: &DeviceMonitorCreateIfaceRequest, ) -> QueryResponseFut<DeviceMonitorCreateIfaceResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn query_iface( &self, iface_id: u16, ) -> QueryResponseFut<DeviceMonitorQueryIfaceResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn destroy_iface( &self, req: &DestroyIfaceRequest, ) -> QueryResponseFut<i32, DefaultFuchsiaResourceDialect> ⓘ
pub fn query_iface_capabilities( &self, iface_id: u16, ) -> QueryResponseFut<DeviceMonitorQueryIfaceCapabilitiesResult, 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.
Trait Implementations§
Source§impl Clone for DeviceMonitorProxy
impl Clone for DeviceMonitorProxy
Source§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 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 ResetResponseFut = QueryResponseFut<Result<(), i32>>
type SetTxPowerScenarioResponseFut = QueryResponseFut<Result<(), i32>>
type ResetTxPowerScenarioResponseFut = QueryResponseFut<Result<(), i32>>
type GetTxPowerScenarioResponseFut = QueryResponseFut<Result<TxPowerScenario, i32>>
type GetPowerElementDependencyTokenResponseFut = QueryResponseFut<Result<Event, i32>>
type GetPowerStateResponseFut = QueryResponseFut<Result<bool, i32>>
type SetBtCoexistenceModeResponseFut = QueryResponseFut<Result<(), i32>>
type CreateIfaceResponseFut = QueryResponseFut<Result<DeviceMonitorCreateIfaceResponse, DeviceMonitorError>>
type QueryIfaceResponseFut = QueryResponseFut<Result<QueryIfaceResponse, i32>>
type DestroyIfaceResponseFut = QueryResponseFut<i32>
type QueryIfaceCapabilitiesResponseFut = QueryResponseFut<Result<DeviceMonitorQueryIfaceCapabilitiesResponse, i32>>
type GetClientSmeResponseFut = QueryResponseFut<Result<(), i32>>
type GetApSmeResponseFut = QueryResponseFut<Result<(), i32>>
type GetSmeTelemetryResponseFut = QueryResponseFut<Result<(), i32>>
fn list_phys(&self) -> Self::ListPhysResponseFut
fn list_ifaces(&self) -> Self::ListIfacesResponseFut
fn get_supported_mac_roles( &self, phy_id: u16, ) -> Self::GetSupportedMacRolesResponseFut
fn watch_devices( &self, watcher: ServerEnd<DeviceWatcherMarker>, ) -> Result<(), Error>
fn watch_phy_events( &self, watcher: ServerEnd<PhyEventWatcherMarker>, ) -> 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 reset(&self, phy_id: u16) -> Self::ResetResponseFut
fn set_tx_power_scenario( &self, phy_id: u16, scenario: TxPowerScenario, ) -> Self::SetTxPowerScenarioResponseFut
fn reset_tx_power_scenario( &self, phy_id: u16, ) -> Self::ResetTxPowerScenarioResponseFut
fn get_tx_power_scenario( &self, phy_id: u16, ) -> Self::GetTxPowerScenarioResponseFut
fn get_power_element_dependency_token( &self, phy_id: u16, ) -> Self::GetPowerElementDependencyTokenResponseFut
fn get_power_state(&self, phy_id: u16) -> Self::GetPowerStateResponseFut
fn set_bt_coexistence_mode( &self, phy_id: u16, mode: BtCoexistenceMode, ) -> Self::SetBtCoexistenceModeResponseFut
fn create_iface( &self, payload: &DeviceMonitorCreateIfaceRequest, ) -> Self::CreateIfaceResponseFut
fn query_iface(&self, iface_id: u16) -> Self::QueryIfaceResponseFut
fn destroy_iface( &self, req: &DestroyIfaceRequest, ) -> Self::DestroyIfaceResponseFut
fn query_iface_capabilities( &self, iface_id: u16, ) -> Self::QueryIfaceCapabilitiesResponseFut
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
Source§impl Proxy for DeviceMonitorProxy
impl Proxy for DeviceMonitorProxy
Source§type Protocol = DeviceMonitorMarker
type Protocol = DeviceMonitorMarker
Proxy controls.