pub trait WhatsAppBot: Sized {
// Required method
async fn ping(self, context: Context) -> String;
// Provided method
fn serve(self) -> ServeWhatsAppBot<Self> { ... }
}Expand description
WhatsApp bot service for remote procedure calls
Required Methods§
Provided Methods§
Sourcefn serve(self) -> ServeWhatsAppBot<Self>
fn serve(self) -> ServeWhatsAppBot<Self>
Returns a serving function to use with InFlightRequest::execute.
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.