pub trait EditorRunner: Send {
// Required method
fn run<'a>(
&'a mut self,
command: &'a CommandSpec,
cancel: &'a CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<EditorExit>> + Send + 'a>>;
}Expand description
Injectable asynchronous editor process boundary.
Required Methods§
Sourcefn run<'a>(
&'a mut self,
command: &'a CommandSpec,
cancel: &'a CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<EditorExit>> + Send + 'a>>
fn run<'a>( &'a mut self, command: &'a CommandSpec, cancel: &'a CancellationToken, ) -> Pin<Box<dyn Future<Output = Result<EditorExit>> + Send + 'a>>
Run one editor command until exit or cancellation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".