pub trait DeviceMonitorProxyInterface: Send + Sync {
Show 48 associated items
type ListPhysResponseFut: Future<Output = Result<Vec<u16>, Error>> + Send;
type ListIfacesResponseFut: Future<Output = Result<Vec<u16>, Error>> + Send;
type GetSupportedMacRolesResponseFut: Future<Output = Result<DeviceMonitorGetSupportedMacRolesResult, Error>> + Send;
type GetCountryResponseFut: Future<Output = Result<DeviceMonitorGetCountryResult, Error>> + Send;
type SetCountryResponseFut: Future<Output = Result<i32, Error>> + Send;
type ClearCountryResponseFut: Future<Output = Result<i32, Error>> + Send;
type SetPowerSaveModeResponseFut: Future<Output = Result<i32, Error>> + Send;
type GetPowerSaveModeResponseFut: Future<Output = Result<DeviceMonitorGetPowerSaveModeResult, Error>> + Send;
type PowerDownResponseFut: Future<Output = Result<DeviceMonitorPowerDownResult, Error>> + Send;
type PowerUpResponseFut: Future<Output = Result<DeviceMonitorPowerUpResult, Error>> + Send;
type ResetResponseFut: Future<Output = Result<DeviceMonitorResetResult, Error>> + Send;
type SetTxPowerScenarioResponseFut: Future<Output = Result<DeviceMonitorSetTxPowerScenarioResult, Error>> + Send;
type ResetTxPowerScenarioResponseFut: Future<Output = Result<DeviceMonitorResetTxPowerScenarioResult, Error>> + Send;
type GetTxPowerScenarioResponseFut: Future<Output = Result<DeviceMonitorGetTxPowerScenarioResult, Error>> + Send;
type GetPowerStateResponseFut: Future<Output = Result<DeviceMonitorGetPowerStateResult, Error>> + Send;
type SetBtCoexistenceModeResponseFut: Future<Output = Result<DeviceMonitorSetBtCoexistenceModeResult, Error>> + Send;
type CreateIfaceResponseFut: Future<Output = Result<DeviceMonitorCreateIfaceResult, Error>> + Send;
type QueryIfaceResponseFut: Future<Output = Result<DeviceMonitorQueryIfaceResult, Error>> + Send;
type DestroyIfaceResponseFut: Future<Output = Result<i32, Error>> + Send;
type QueryIfaceCapabilitiesResponseFut: Future<Output = Result<DeviceMonitorQueryIfaceCapabilitiesResult, Error>> + Send;
type GetClientSmeResponseFut: Future<Output = Result<DeviceMonitorGetClientSmeResult, Error>> + Send;
type GetApSmeResponseFut: Future<Output = Result<DeviceMonitorGetApSmeResult, Error>> + Send;
type GetSmeTelemetryResponseFut: Future<Output = Result<DeviceMonitorGetSmeTelemetryResult, Error>> + Send;
// Required methods
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 power_down(&self, phy_id: u16) -> Self::PowerDownResponseFut;
fn power_up(&self, phy_id: u16) -> Self::PowerUpResponseFut;
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_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;
}Required Associated Types§
type ListPhysResponseFut: Future<Output = Result<Vec<u16>, Error>> + Send
type ListIfacesResponseFut: Future<Output = Result<Vec<u16>, Error>> + Send
type GetSupportedMacRolesResponseFut: Future<Output = Result<DeviceMonitorGetSupportedMacRolesResult, Error>> + Send
type GetCountryResponseFut: Future<Output = Result<DeviceMonitorGetCountryResult, Error>> + Send
type SetCountryResponseFut: Future<Output = Result<i32, Error>> + Send
type ClearCountryResponseFut: Future<Output = Result<i32, Error>> + Send
type SetPowerSaveModeResponseFut: Future<Output = Result<i32, Error>> + Send
type GetPowerSaveModeResponseFut: Future<Output = Result<DeviceMonitorGetPowerSaveModeResult, Error>> + Send
type PowerDownResponseFut: Future<Output = Result<DeviceMonitorPowerDownResult, Error>> + Send
type PowerUpResponseFut: Future<Output = Result<DeviceMonitorPowerUpResult, Error>> + Send
type ResetResponseFut: Future<Output = Result<DeviceMonitorResetResult, Error>> + Send
type SetTxPowerScenarioResponseFut: Future<Output = Result<DeviceMonitorSetTxPowerScenarioResult, Error>> + Send
type ResetTxPowerScenarioResponseFut: Future<Output = Result<DeviceMonitorResetTxPowerScenarioResult, Error>> + Send
type GetTxPowerScenarioResponseFut: Future<Output = Result<DeviceMonitorGetTxPowerScenarioResult, Error>> + Send
type GetPowerStateResponseFut: Future<Output = Result<DeviceMonitorGetPowerStateResult, Error>> + Send
type SetBtCoexistenceModeResponseFut: Future<Output = Result<DeviceMonitorSetBtCoexistenceModeResult, Error>> + Send
type CreateIfaceResponseFut: Future<Output = Result<DeviceMonitorCreateIfaceResult, Error>> + Send
type QueryIfaceResponseFut: Future<Output = Result<DeviceMonitorQueryIfaceResult, Error>> + Send
type DestroyIfaceResponseFut: Future<Output = Result<i32, Error>> + Send
type QueryIfaceCapabilitiesResponseFut: Future<Output = Result<DeviceMonitorQueryIfaceCapabilitiesResult, Error>> + Send
type GetClientSmeResponseFut: Future<Output = Result<DeviceMonitorGetClientSmeResult, Error>> + Send
type GetApSmeResponseFut: Future<Output = Result<DeviceMonitorGetApSmeResult, Error>> + Send
type GetSmeTelemetryResponseFut: Future<Output = Result<DeviceMonitorGetSmeTelemetryResult, Error>> + Send
Required Methods§
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 power_down(&self, phy_id: u16) -> Self::PowerDownResponseFut
fn power_up(&self, phy_id: u16) -> Self::PowerUpResponseFut
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_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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".