pub trait InvocationHandle {
// Required methods
fn invocation_id(
&self,
) -> impl Future<Output = Result<String, TerminalError>> + Send;
fn cancel(&self) -> impl Future<Output = Result<(), TerminalError>> + Send;
}
Required Methods§
fn invocation_id( &self, ) -> impl Future<Output = Result<String, TerminalError>> + Send
fn cancel(&self) -> impl Future<Output = Result<(), TerminalError>> + Send
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.