pub trait InteractionHandler:
Sync
+ Send
+ 'static {
Show 18 methods
// Required methods
fn show_message_box(
&mut self,
title: &str,
text: &str,
buttons: MessageBoxButtonSet,
icon: MessageBoxIcon,
) -> MessageBoxButtonResult;
fn open_url(&mut self, url: &str) -> bool;
fn run_progress_dialog(
&mut self,
title: &str,
can_cancel: bool,
task: &InteractionHandlerTask,
) -> bool;
fn show_plain_text_report(
&mut self,
view: Option<&BinaryView>,
title: &str,
contents: &str,
);
fn show_graph_report(
&mut self,
view: Option<&BinaryView>,
title: &str,
graph: &FlowGraph,
);
fn get_form_input(&mut self, form: &mut Form) -> bool;
// Provided methods
fn show_markdown_report(
&mut self,
view: Option<&BinaryView>,
title: &str,
_contents: &str,
plain_text: &str,
) { ... }
fn show_html_report(
&mut self,
view: Option<&BinaryView>,
title: &str,
_contents: &str,
plain_text: &str,
) { ... }
fn show_report_collection(
&mut self,
_title: &str,
reports: &ReportCollection,
) { ... }
fn get_text_line_input(
&mut self,
prompt: &str,
title: &str,
) -> Option<String> { ... }
fn get_integer_input(&mut self, prompt: &str, title: &str) -> Option<i64> { ... }
fn get_address_input(
&mut self,
prompt: &str,
title: &str,
view: Option<&BinaryView>,
current_addr: u64,
) -> Option<u64> { ... }
fn get_choice_input(
&mut self,
prompt: &str,
title: &str,
choices: Vec<String>,
) -> Option<usize> { ... }
fn get_large_choice_input(
&mut self,
prompt: &str,
title: &str,
choices: Vec<String>,
) -> Option<usize> { ... }
fn get_open_file_name_input(
&mut self,
prompt: &str,
extension: Option<String>,
) -> Option<String> { ... }
fn get_save_file_name_input(
&mut self,
prompt: &str,
extension: Option<String>,
default: Option<String>,
) -> Option<String> { ... }
fn get_directory_name_input(
&mut self,
prompt: &str,
default: Option<String>,
) -> Option<String> { ... }
fn get_checkbox_input(
&mut self,
prompt: &str,
title: &str,
default: Option<i64>,
) -> Option<i64> { ... }
}Required Methods§
fn show_message_box( &mut self, title: &str, text: &str, buttons: MessageBoxButtonSet, icon: MessageBoxIcon, ) -> MessageBoxButtonResult
fn open_url(&mut self, url: &str) -> bool
fn run_progress_dialog( &mut self, title: &str, can_cancel: bool, task: &InteractionHandlerTask, ) -> bool
fn show_plain_text_report( &mut self, view: Option<&BinaryView>, title: &str, contents: &str, )
fn show_graph_report( &mut self, view: Option<&BinaryView>, title: &str, graph: &FlowGraph, )
fn get_form_input(&mut self, form: &mut Form) -> bool
Provided Methods§
fn show_markdown_report( &mut self, view: Option<&BinaryView>, title: &str, _contents: &str, plain_text: &str, )
fn show_html_report( &mut self, view: Option<&BinaryView>, title: &str, _contents: &str, plain_text: &str, )
fn show_report_collection(&mut self, _title: &str, reports: &ReportCollection)
fn get_text_line_input(&mut self, prompt: &str, title: &str) -> Option<String>
fn get_integer_input(&mut self, prompt: &str, title: &str) -> Option<i64>
fn get_address_input( &mut self, prompt: &str, title: &str, view: Option<&BinaryView>, current_addr: u64, ) -> Option<u64>
fn get_choice_input( &mut self, prompt: &str, title: &str, choices: Vec<String>, ) -> Option<usize>
fn get_large_choice_input( &mut self, prompt: &str, title: &str, choices: Vec<String>, ) -> Option<usize>
fn get_open_file_name_input( &mut self, prompt: &str, extension: Option<String>, ) -> Option<String>
fn get_save_file_name_input( &mut self, prompt: &str, extension: Option<String>, default: Option<String>, ) -> Option<String>
fn get_directory_name_input( &mut self, prompt: &str, default: Option<String>, ) -> Option<String>
fn get_checkbox_input( &mut self, prompt: &str, title: &str, default: Option<i64>, ) -> Option<i64>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".