Struct chromiumoxide_fetcher::BrowserFetcher
source · pub struct BrowserFetcher { /* private fields */ }
Expand description
A BrowserFetcher
used to download and install a version of chromium.
Implementations§
source§impl BrowserFetcher
impl BrowserFetcher
pub fn new(options: BrowserFetcherOptions) -> Self
sourcepub async fn fetch(&self) -> Result<BrowserFetcherRevisionInfo, FetcherError>
pub async fn fetch(&self) -> Result<BrowserFetcherRevisionInfo, FetcherError>
Fetches the browser revision, either locally if it was previously installed or remotely. If fetching remotely, the method can take a long time to resolve.
This fails if the download or installation fails. The fetcher doesn’t retry on network errors during download. If the installation fails, it might leave the cache in a bad state and it is advised to wipe it.
If providing a custom host, make sure files are in the same places as the official builds otherwise the installation will succeed but the runtime will fail.
Auto Trait Implementations§
impl RefUnwindSafe for BrowserFetcher
impl Send for BrowserFetcher
impl Sync for BrowserFetcher
impl Unpin for BrowserFetcher
impl UnwindSafe for BrowserFetcher
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more