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§
Sourcefn send_human(
&mut self,
text: &str,
config: HumanTypingConfig,
) -> impl Future<Output = Result<()>> + Send
fn send_human( &mut self, text: &str, config: HumanTypingConfig, ) -> impl Future<Output = Result<()>> + Send
Send text with human-like typing patterns.
Provided Methods§
Sourcefn send_human_speed(
&mut self,
text: &str,
speed: TypingSpeed,
) -> impl Future<Output = Result<()>> + Send
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.