pub struct ImageConverter { /* private fields */ }Expand description
Safe wrapper for working with the wkhtmltoimage converter
Implementations§
Source§impl ImageConverter
impl ImageConverter
Sourcepub fn convert<'a>(self) -> Result<ImageOutput<'a>>
pub fn convert<'a>(self) -> Result<ImageOutput<'a>>
Performs the HTML to image conversion
This method does not do any additional allocations of the output,
so the ImageConverter will be owned by ImageOutput so that
it is not dropped until the ImageOutput is dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageConverter
impl RefUnwindSafe for ImageConverter
impl !Send for ImageConverter
impl !Sync for ImageConverter
impl Unpin for ImageConverter
impl UnwindSafe for ImageConverter
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