pub struct BrowsrClient { /* private fields */ }Implementations§
Source§impl BrowsrClient
impl BrowsrClient
pub fn new_http(base_url: impl Into<String>) -> Self
pub fn new_stdout(command: impl Into<String>) -> Self
pub fn from_config(cfg: TransportConfig) -> Self
pub async fn list_sessions(&self) -> Result<Vec<String>, ClientError>
pub async fn create_session(&self) -> Result<String, ClientError>
pub async fn destroy_session(&self, session_id: &str) -> Result<(), ClientError>
pub async fn execute_commands( &self, commands: Vec<Commands>, session_id: Option<String>, headless: Option<bool>, context: Option<BrowserContext>, ) -> Result<AutomateResponse, ClientError>
pub async fn observe( &self, session_id: Option<String>, headless: Option<bool>, opts: ObserveOptions, ) -> Result<ObserveResponse, ClientError>
pub async fn scrape(&self, options: ScrapeOptions) -> Result<Value, ClientError>
pub async fn search( &self, options: SearchOptions, ) -> Result<SearchResponse, ClientError>
Trait Implementations§
Source§impl Clone for BrowsrClient
impl Clone for BrowsrClient
Source§fn clone(&self) -> BrowsrClient
fn clone(&self) -> BrowsrClient
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BrowsrClient
impl !RefUnwindSafe for BrowsrClient
impl Send for BrowsrClient
impl Sync for BrowsrClient
impl Unpin for BrowsrClient
impl !UnwindSafe for BrowsrClient
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)