pub struct NoopRenderer;Expand description
A no-op renderer used when Chromium is unavailable.
The mapper’s HTTP acquisition layers (0-2.5) work without a browser. This stub makes Layer 3 (browser fallback) return errors, but everything else still functions.
Trait Implementations§
Source§impl Renderer for NoopRenderer
impl Renderer for NoopRenderer
Source§fn new_context<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RenderContext>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn new_context<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RenderContext>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new browser context (tab).
Source§fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Shut down the browser engine.
Source§fn active_contexts(&self) -> usize
fn active_contexts(&self) -> usize
Number of currently active contexts.
Auto Trait Implementations§
impl Freeze for NoopRenderer
impl RefUnwindSafe for NoopRenderer
impl Send for NoopRenderer
impl Sync for NoopRenderer
impl Unpin for NoopRenderer
impl UnsafeUnpin for NoopRenderer
impl UnwindSafe for NoopRenderer
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