pub trait TestDeviceProxyInterface: Send + Sync {
type QueryResponseFut: Future<Output = Result<DeviceQueryResult, Error>> + Send;
type GetIcdListResponseFut: Future<Output = Result<Vec<IcdInfo>, Error>> + Send;
type GetUnitTestStatusResponseFut: Future<Output = Result<i32, Error>> + Send;
// Required methods
fn query(&self, query_id: QueryId) -> Self::QueryResponseFut;
fn connect2(
&self,
client_id: u64,
primary_channel: ServerEnd<PrimaryMarker>,
notification_channel: ServerEnd<NotificationMarker>,
) -> Result<(), Error>;
fn dump_state(&self, dump_type: u32) -> Result<(), Error>;
fn get_icd_list(&self) -> Self::GetIcdListResponseFut;
fn get_unit_test_status(&self) -> Self::GetUnitTestStatusResponseFut;
}Required Associated Types§
type QueryResponseFut: Future<Output = Result<DeviceQueryResult, Error>> + Send
type GetIcdListResponseFut: Future<Output = Result<Vec<IcdInfo>, Error>> + Send
type GetUnitTestStatusResponseFut: Future<Output = Result<i32, Error>> + Send
Required Methods§
fn query(&self, query_id: QueryId) -> Self::QueryResponseFut
fn connect2( &self, client_id: u64, primary_channel: ServerEnd<PrimaryMarker>, notification_channel: ServerEnd<NotificationMarker>, ) -> Result<(), Error>
fn dump_state(&self, dump_type: u32) -> Result<(), Error>
fn get_icd_list(&self) -> Self::GetIcdListResponseFut
fn get_unit_test_status(&self) -> Self::GetUnitTestStatusResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".