pub enum ScreenshotFormat {
Png,
Jpeg,
Webp,
}Expand description
Encoding used for a screenshot.
Variants§
Png
Lossless PNG (the default).
Jpeg
JPEG, with optional quality from 0 through 100.
Webp
WebP, with optional quality from 0 through 100.
Trait Implementations§
Source§impl Clone for ScreenshotFormat
impl Clone for ScreenshotFormat
impl Copy for ScreenshotFormat
Source§impl Debug for ScreenshotFormat
impl Debug for ScreenshotFormat
Source§impl Default for ScreenshotFormat
impl Default for ScreenshotFormat
impl Eq for ScreenshotFormat
Source§impl PartialEq for ScreenshotFormat
impl PartialEq for ScreenshotFormat
Source§impl Serialize for ScreenshotFormat
impl Serialize for ScreenshotFormat
impl StructuralPartialEq for ScreenshotFormat
Auto Trait Implementations§
impl Freeze for ScreenshotFormat
impl RefUnwindSafe for ScreenshotFormat
impl Send for ScreenshotFormat
impl Sync for ScreenshotFormat
impl Unpin for ScreenshotFormat
impl UnsafeUnpin for ScreenshotFormat
impl UnwindSafe for ScreenshotFormat
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