Skip to main content

MonitorProxyInterface

Trait MonitorProxyInterface 

Source
pub trait MonitorProxyInterface: Send + Sync {
    type WatchResponseFut: Future<Output = Result<Snapshot, Error>> + Send;

    // Required methods
    fn set_options(&self, payload: &MonitorOptions) -> Result<(), Error>;
    fn watch(&self) -> Self::WatchResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn set_options(&self, payload: &MonitorOptions) -> Result<(), Error>

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§