pub trait LoginDriver: Send {
// Required methods
fn start(&mut self, phone: &Secret) -> Step;
fn submit_code(&mut self, code: &Secret) -> Step;
fn wait(&mut self, timeout: Duration) -> Step;
fn cancel(&mut self);
}Expand description
One login in a fresh isolated browser context, driven from its own thread. The phone and the code are passed in and never kept by the caller.
Required Methods§
Sourcefn submit_code(&mut self, code: &Secret) -> Step
fn submit_code(&mut self, code: &Secret) -> Step
The code Grab sent.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".