Skip to main content

SessionHandler

Trait SessionHandler 

Source
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§

Source

fn session_id(&self) -> String

Source

fn windows(&self) -> Vec<String>

Open window instance ids, for discovery.

Source

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".

Implementors§