pub trait ClientProxyInterface: Send + Sync {
type WatchServicesResponseFut: Future<Output = Result<(Vec<ServiceInfo>, Vec<Handle>), Error>> + Send;
// Required methods
fn watch_services(&self, uuids: &[Uuid]) -> Self::WatchServicesResponseFut;
fn connect_to_service(
&self,
handle: &ServiceHandle,
service: ServerEnd<RemoteServiceMarker>,
) -> Result<(), Error>;
}Required Associated Types§
type WatchServicesResponseFut: Future<Output = Result<(Vec<ServiceInfo>, Vec<Handle>), Error>> + Send
Required Methods§
fn watch_services(&self, uuids: &[Uuid]) -> Self::WatchServicesResponseFut
fn connect_to_service( &self, handle: &ServiceHandle, service: ServerEnd<RemoteServiceMarker>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".