pub trait Renderer: Send + Sync {
// Required methods
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 shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn active_contexts(&self) -> usize;
}Expand description
A browser engine that can create rendering contexts.
Required Methods§
Sourcefn 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).
Sourcefn 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.
Sourcefn active_contexts(&self) -> usize
fn active_contexts(&self) -> usize
Number of currently active contexts.