pub trait ReplSession {
// Required methods
fn prompt(&self) -> String;
async fn run_command(
&mut self,
command: &Command,
json: bool,
) -> Result<String>;
async fn login(&mut self, client_id_hex: &str) -> Result<String>;
}Expand description
The state the REPL drives: the current identity and how to run commands against it.
Required Methods§
fn prompt(&self) -> String
async fn run_command(&mut self, command: &Command, json: bool) -> Result<String>
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.