pub trait OnBridgeEvent<T: Agent>: Widget {
// Provided method
fn on_event(
&mut self,
_response: T::Output,
_ctx: &mut Context<Self>,
) -> Result<(), Error> { ... }
}
Provided Methods§
fn on_event( &mut self, _response: T::Output, _ctx: &mut Context<Self>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.