pub trait LineModuleApi: Send + Sync {
// Required methods
fn acquire_chat_control(
&self,
chat_id: &str,
acquire_chat_control_request: Option<AcquireChatControlRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn detach_module(
&self,
detach_module_request: Option<DetachModuleRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn get_modules(
&self,
start: Option<&str>,
limit: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<GetModulesResponse, Error>> + Send>>;
fn release_chat_control(
&self,
chat_id: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
}Required Methods§
fn acquire_chat_control( &self, chat_id: &str, acquire_chat_control_request: Option<AcquireChatControlRequest>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
fn detach_module( &self, detach_module_request: Option<DetachModuleRequest>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
fn get_modules( &self, start: Option<&str>, limit: Option<i32>, ) -> Pin<Box<dyn Future<Output = Result<GetModulesResponse, Error>> + Send>>
fn release_chat_control( &self, chat_id: &str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".