Skip to main content

LineModuleApi

Trait LineModuleApi 

Source
pub trait LineModuleApi: Send + Sync {
    // Required methods
    fn acquire_chat_control(
        &self,
        chat_id: &str,
        acquire_chat_control_request: Option<AcquireChatControlRequest>,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn detach_module(
        &self,
        detach_module_request: Option<DetachModuleRequest>,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn get_modules(
        &self,
        start: Option<&str>,
        limit: Option<i32>,
    ) -> impl Future<Output = Result<GetModulesResponse, Error>> + Send;
    fn release_chat_control(
        &self,
        chat_id: &str,
    ) -> impl Future<Output = Result<(), Error>> + Send;
}

Required Methods§

Source

fn acquire_chat_control( &self, chat_id: &str, acquire_chat_control_request: Option<AcquireChatControlRequest>, ) -> impl Future<Output = Result<(), Error>> + Send

Source

fn detach_module( &self, detach_module_request: Option<DetachModuleRequest>, ) -> impl Future<Output = Result<(), Error>> + Send

Source

fn get_modules( &self, start: Option<&str>, limit: Option<i32>, ) -> impl Future<Output = Result<GetModulesResponse, Error>> + Send

Source

fn release_chat_control( &self, chat_id: &str, ) -> impl Future<Output = Result<(), Error>> + 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.

Implementors§