pub struct App {Show 14 fields
pub test_results: Vec<TestResult>,
pub config: TestConfig,
pub selected_test: usize,
pub tab_index: usize,
pub show_help: bool,
pub release_mode: bool,
pub history: Vec<TestHistory>,
pub selected_history: usize,
pub viewing_history: bool,
pub show_popup: bool,
pub popup_type: PopupType,
pub result_popup_visible: bool,
pub result_popup_time: Option<Instant>,
pub result_popup_message: String,
}Fields§
§test_results: Vec<TestResult>§config: TestConfig§selected_test: usize§tab_index: usize§show_help: bool§release_mode: bool§history: Vec<TestHistory>§selected_history: usize§viewing_history: bool§show_popup: bool§popup_type: PopupType§result_popup_visible: bool§result_popup_time: Option<Instant>§result_popup_message: StringImplementations§
Source§impl App
impl App
pub fn new(test_results: Vec<TestResult>, config: TestConfig) -> Self
pub fn next(&mut self)
pub fn previous(&mut self)
pub fn next_tab(&mut self)
pub fn previous_tab(&mut self)
pub fn toggle_help(&mut self)
pub fn toggle_release_mode(&mut self)
pub fn get_stats(&self) -> (usize, usize, f64)
pub fn get_command_details( &self, ) -> Option<(&str, &[String], Option<&String>, u128, bool, Option<&Vec<String>>)>
pub fn add_to_history(&mut self)
pub fn toggle_history_view(&mut self)
pub fn next_history(&mut self)
pub fn previous_history(&mut self)
pub fn get_history_stats(&self) -> Vec<(u64, usize, usize, bool)>
pub fn reset_ui_state(&mut self)
pub fn toggle_popup(&mut self, popup_type: PopupType)
pub fn close_popup(&mut self)
pub fn show_result_popup(&mut self, message: String)
pub fn update_result_popup(&mut self) -> bool
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more