pub trait InputComponent {
// Required methods
fn info(&self) -> ComponentInfo;
fn run(&mut self, ctx: &mut dyn Context) -> Result<InputValue>;
}Expand description
Interactive component that runs with a context
Required Methods§
Sourcefn info(&self) -> ComponentInfo
fn info(&self) -> ComponentInfo
Get component information
Sourcefn run(&mut self, ctx: &mut dyn Context) -> Result<InputValue>
fn run(&mut self, ctx: &mut dyn Context) -> Result<InputValue>
Run the component, handling rendering and events internally