pub trait RtkLuaScriptExecutor:
Send
+ Sync
+ Clone
+ 'static {
// Required methods
fn intake_version(&self, version: RtkRustcDriverVersion);
fn query_method_calls(&self, query: MethodCallQuery) -> Vec<MethodCall>;
fn query_trait_impls(&self, query: Location) -> Vec<TraitImpl>;
fn query_functions(&self, query: Location) -> Vec<FunctionTypeValue>;
fn query_function_calls(&self, query: Location) -> Vec<FunctionCall>;
fn log_note(&self, msg: String);
fn log_warn(&self, msg: String);
fn log_error(&self, msg: String);
fn log_fatal_error(&self, msg: String) -> !;
fn emit(&self, text: String);
// Provided method
fn intake_debug_version(&self, version: RtkRustcDriverVersion) { ... }
}
Required Methods§
Sourcefn intake_version(&self, version: RtkRustcDriverVersion)
fn intake_version(&self, version: RtkRustcDriverVersion)
Intake the driver version provided by the script
fn query_method_calls(&self, query: MethodCallQuery) -> Vec<MethodCall>
fn query_trait_impls(&self, query: Location) -> Vec<TraitImpl>
fn query_functions(&self, query: Location) -> Vec<FunctionTypeValue>
fn query_function_calls(&self, query: Location) -> Vec<FunctionCall>
fn log_note(&self, msg: String)
fn log_warn(&self, msg: String)
fn log_error(&self, msg: String)
fn log_fatal_error(&self, msg: String) -> !
fn emit(&self, text: String)
Provided Methods§
Sourcefn intake_debug_version(&self, version: RtkRustcDriverVersion)
fn intake_debug_version(&self, version: RtkRustcDriverVersion)
Intake the driver version provided by the script to use when debug assertions are enabled
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.