HumanSend

Trait HumanSend 

Source
pub trait HumanSend {
    // Required method
    fn send_human(
        &mut self,
        text: &str,
        config: HumanTypingConfig,
    ) -> impl Future<Output = Result<()>> + Send;

    // Provided method
    fn send_human_speed(
        &mut self,
        text: &str,
        speed: TypingSpeed,
    ) -> impl Future<Output = Result<()>> + Send { ... }
}
Expand description

Extension trait for human-like typing.

Required Methods§

Source

fn send_human( &mut self, text: &str, config: HumanTypingConfig, ) -> impl Future<Output = Result<()>> + Send

Send text with human-like typing patterns.

Provided Methods§

Source

fn send_human_speed( &mut self, text: &str, speed: TypingSpeed, ) -> impl Future<Output = Result<()>> + Send

Send text with a preset typing speed.

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§