pub enum ScreenshotOutput {
Bytes(Vec<u8>),
Path(PathBuf),
}Expand description
Return type of Page::screenshot.
Variants§
Bytes(Vec<u8>)
PNG bytes held in memory (no path supplied).
Path(PathBuf)
Path the PNG was written to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScreenshotOutput
impl RefUnwindSafe for ScreenshotOutput
impl Send for ScreenshotOutput
impl Sync for ScreenshotOutput
impl Unpin for ScreenshotOutput
impl UnsafeUnpin for ScreenshotOutput
impl UnwindSafe for ScreenshotOutput
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