pub trait DeviceWatcherProxyInterface: Send + Sync {
type WatchDevicesResponseFut: Future<Output = Result<Vec<WatchDevicesEvent>, Error>> + Send;
// Required methods
fn watch_devices(&self) -> Self::WatchDevicesResponseFut;
fn connect_to_device(
&self,
id: u64,
request: ServerEnd<DeviceMarker>,
) -> Result<(), Error>;
}Required Associated Types§
type WatchDevicesResponseFut: Future<Output = Result<Vec<WatchDevicesEvent>, Error>> + Send
Required Methods§
fn watch_devices(&self) -> Self::WatchDevicesResponseFut
fn connect_to_device( &self, id: u64, request: ServerEnd<DeviceMarker>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".