Skip to main content

HostWatcherProxyInterface

Trait HostWatcherProxyInterface 

Source
pub trait HostWatcherProxyInterface: Send + Sync {
    type WatchResponseFut: Future<Output = Result<Vec<HostInfo>, Error>> + Send;
    type SetActiveResponseFut: Future<Output = Result<HostWatcherSetActiveResult, Error>> + Send;

    // Required methods
    fn watch(&self) -> Self::WatchResponseFut;
    fn set_active(&self, id: &HostId) -> Self::SetActiveResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn watch(&self) -> Self::WatchResponseFut

Source

fn set_active(&self, id: &HostId) -> Self::SetActiveResponseFut

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§