pub trait GrabBackend: Send + Sync {
// Required methods
fn client(&self, session: Arc<dyn SessionSlot>) -> Arc<dyn GrabClient> ⓘ;
fn login(
&self,
cdp_url: &str,
previous: Option<Value>,
) -> Result<Box<dyn LoginDriver>, String>;
}Expand description
Makes the clients and the login drivers.
Required Methods§
Sourcefn client(&self, session: Arc<dyn SessionSlot>) -> Arc<dyn GrabClient> ⓘ
fn client(&self, session: Arc<dyn SessionSlot>) -> Arc<dyn GrabClient> ⓘ
The client of the account behind session.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".