pub trait DeviceProxyInterface: Send + Sync {
type QueryResponseFut: Future<Output = Result<DeviceQueryResult, 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>;
}Required Associated Types§
type QueryResponseFut: Future<Output = Result<DeviceQueryResult, 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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".