pub trait TerminalApplications<T: Execute<U>, U>:
Sized
+ Default
+ Content<T> {
// Required method
fn parse_yaml(&mut self, yaml: &Mapping);
// Provided methods
fn update_from_config(&mut self, config_file: &str) { ... }
fn execute(&self, status: &Status) -> Result<U> { ... }
}Expand description
Common methods of terminal applications. Wether they require interaction and are opened in a new terminal or not and are previewed. All those applications are configurable from a config file and share their configuration. Only the yaml parsing should be implemented specifically since more information is required for some application.
Required Methods§
fn parse_yaml(&mut self, yaml: &Mapping)
Provided Methods§
fn update_from_config(&mut self, config_file: &str)
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.