pub trait SessionHandler: Send + Sync {
// Required methods
fn session_id(&self) -> String;
fn windows(&self) -> Vec<String>;
fn handle(
&self,
command: SessionCommand,
params: Vec<Value>,
) -> Result<Value, CommandError>;
}Expand description
Executes framework session commands for one live UI session. Targets implement it so external entries reach the real control bindings.
Required Methods§
fn session_id(&self) -> String
Sourcefn handle(
&self,
command: SessionCommand,
params: Vec<Value>,
) -> Result<Value, CommandError>
fn handle( &self, command: SessionCommand, params: Vec<Value>, ) -> Result<Value, CommandError>
Run a session command and wait for its result.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".