thirtyfour::actions

Trait InputSource

Source
pub trait InputSource: Into<ActionSequence> {
    type Action;

    // Required methods
    fn pause(self, duration: Duration) -> Self;
    fn then(self, action: Self::Action) -> Self;
}
Expand description

A source capable of providing inputs for a browser action chain.

See input source in the WebDriver standard.

Each sequence type implements InputSource which provides a pause() and a then() method. Each call to pause() or then() represents one tick for this sequence.

Required Associated Types§

Source

type Action

The action type associated with this InputSource.

Required Methods§

Source

fn pause(self, duration: Duration) -> Self

Add a pause action to the sequence for this input source.

Source

fn then(self, action: Self::Action) -> Self

Add the specified action to the sequence for this input source.

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§