pub trait BrowserBackend: Send + Sync {
// Required methods
fn render<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
diagram_type: &'life1 str,
source: &'life2 str,
format: &'life3 str,
) -> Pin<Box<dyn Future<Output = DiagramResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Value> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Abstract interface for browser-based diagram rendering. Managed via a persistent pool of browser contexts.
Required Methods§
Sourcefn render<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
diagram_type: &'life1 str,
source: &'life2 str,
format: &'life3 str,
) -> Pin<Box<dyn Future<Output = DiagramResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn render<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
diagram_type: &'life1 str,
source: &'life2 str,
format: &'life3 str,
) -> Pin<Box<dyn Future<Output = DiagramResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Renders a diagram using the browser.