Skip to main content

ExtensionHostActions

Trait ExtensionHostActions 

Source
pub trait ExtensionHostActions: Send + Sync {
    // Required methods
    fn send_message<'life0, 'async_trait>(
        &'life0 self,
        message: ExtensionSendMessage,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_user_message<'life0, 'async_trait>(
        &'life0 self,
        message: ExtensionSendUserMessage,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn send_message<'life0, 'async_trait>( &'life0 self, message: ExtensionSendMessage, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn send_user_message<'life0, 'async_trait>( &'life0 self, message: ExtensionSendUserMessage, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§