pub trait ListenerProxyInterface: Send + Sync {
type OnStateChangedResponseFut: Future<Output = Result<(), Error>> + Send;
// Required method
fn on_state_changed(
&self,
state: State,
transition_time: i64,
) -> Self::OnStateChangedResponseFut;
}Required Associated Types§
Required Methods§
fn on_state_changed( &self, state: State, transition_time: i64, ) -> Self::OnStateChangedResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".