Trait InvocationHandle

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

Source

fn invocation_id( &self, ) -> impl Future<Output = Result<String, TerminalError>> + Send

Source

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.

Implementations on Foreign Types§

Source§

impl<A, B> InvocationHandle for Either<A, B>

Source§

fn invocation_id( &self, ) -> impl Future<Output = Result<String, TerminalError>> + Send

Source§

fn cancel(&self) -> impl Future<Output = Result<(), TerminalError>> + Send

Implementors§