pub struct AsyncStaticExporter { /* private fields */ }Expand description
Async StaticExporter for async contexts. Keeps the same API as the sync StaticExporter for compatibility.
Implementations§
Source§impl AsyncStaticExporter
impl AsyncStaticExporter
Sourcepub async fn write_fig(
&mut self,
dst: &Path,
plot: &Value,
format: ImageFormat,
width: usize,
height: usize,
scale: f64,
) -> Result<(), Box<dyn Error>>
pub async fn write_fig( &mut self, dst: &Path, plot: &Value, format: ImageFormat, width: usize, height: usize, scale: f64, ) -> Result<(), Box<dyn Error>>
Exports a Plotly plot to a static image file
Same as StaticExporter::write_fig but async.
Sourcepub async fn write_to_string(
&mut self,
plot: &Value,
format: ImageFormat,
width: usize,
height: usize,
scale: f64,
) -> Result<String, Box<dyn Error>>
pub async fn write_to_string( &mut self, plot: &Value, format: ImageFormat, width: usize, height: usize, scale: f64, ) -> Result<String, Box<dyn Error>>
Exports a Plotly plot to a string representation.
Same as StaticExporter::write_to_string but async.
Sourcepub async fn close(&mut self)
pub async fn close(&mut self)
Close the WebDriver session and stop the driver if it was spawned.
Always call close to ensure proper cleanup.
Sourcepub fn get_webdriver_diagnostics(&self) -> String
pub fn get_webdriver_diagnostics(&self) -> String
Get diagnostic information about the underlying WebDriver process.
Auto Trait Implementations§
impl Freeze for AsyncStaticExporter
impl RefUnwindSafe for AsyncStaticExporter
impl Send for AsyncStaticExporter
impl Sync for AsyncStaticExporter
impl Unpin for AsyncStaticExporter
impl UnwindSafe for AsyncStaticExporter
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