pub trait DebugAdapter<S, A>: 'static {
// Required methods
fn render(
&mut self,
frame: &mut Frame<'_>,
state: &S,
render_ctx: RenderContext,
render_fn: &mut dyn FnMut(&mut Frame<'_>, Rect, &S, RenderContext),
);
fn handle_event(
&mut self,
event: &EventKind,
state: &S,
action_tx: &UnboundedSender<A>,
) -> Option<bool>;
fn log_action(&mut self, action: &A);
fn is_enabled(&self) -> bool;
}Required Methods§
fn render( &mut self, frame: &mut Frame<'_>, state: &S, render_ctx: RenderContext, render_fn: &mut dyn FnMut(&mut Frame<'_>, Rect, &S, RenderContext), )
fn handle_event( &mut self, event: &EventKind, state: &S, action_tx: &UnboundedSender<A>, ) -> Option<bool>
fn log_action(&mut self, action: &A)
fn is_enabled(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".