pub trait Injector: Send + Sync {
// Required methods
fn inject(&self, cmd: &InjectionCommand) -> Result<(), AppError>;
fn label(&self) -> &str;
// Provided methods
fn semantic_event(&self, _event: &SemanticEvent) -> Result<(), AppError> { ... }
fn supports_events(&self) -> bool { ... }
}Expand description
Replays an InjectionCommand as local OS keystrokes.
Required Methods§
Provided Methods§
Sourcefn semantic_event(&self, _event: &SemanticEvent) -> Result<(), AppError>
fn semantic_event(&self, _event: &SemanticEvent) -> Result<(), AppError>
Additive application-event hook. Never fall back to OS injection.