INNER CODE UNIT · Rust
state
rustic-rs/rustic · src/application.rs:66
fn state(&self) -> &application::State<Self> {
&self.state
}
/// Returns the framework components used by this application.
fn framework_components(
&mut self,
command: &Self::Cmd,
) -> Result<Vec<Box<dyn Component<Self>>>, FrameworkError> {
// we only use the terminal component
let terminal = Terminal::new(self.term_colors(command));
Ok(vec![Box::new(terminal)])
}
/// Register all components used by this application.
///
/// If you would like to add additional components to your application