pub trait ObserverDiscoveryProxyInterface: Send + Sync {
// Required methods
fn watch_sessions(
&self,
watch_options: &WatchOptions,
sessions_watcher: ClientEnd<SessionsWatcherMarker>,
) -> Result<(), Error>;
fn connect_to_session(
&self,
session_id: u64,
session_request: ServerEnd<SessionObserverMarker>,
) -> Result<(), Error>;
}Required Methods§
fn watch_sessions( &self, watch_options: &WatchOptions, sessions_watcher: ClientEnd<SessionsWatcherMarker>, ) -> Result<(), Error>
fn connect_to_session( &self, session_id: u64, session_request: ServerEnd<SessionObserverMarker>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".