Skip to main content

MonitorProxyInterface

Trait MonitorProxyInterface 

Source
pub trait MonitorProxyInterface: Send + Sync {
    type OnStateResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required method
    fn on_state(&self, state: &State) -> Self::OnStateResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn on_state(&self, state: &State) -> Self::OnStateResponseFut

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§