pub enum ScreenshotExportOutcome {
Saved(PathBuf),
Started,
}Expand description
Result of a platform screenshot export operation.
Variants§
Saved(PathBuf)
Native targets write the PNG to disk and return the saved path.
Started
Browser targets hand the operation to the DOM and return immediately.
Trait Implementations§
Source§impl Clone for ScreenshotExportOutcome
impl Clone for ScreenshotExportOutcome
Source§fn clone(&self) -> ScreenshotExportOutcome
fn clone(&self) -> ScreenshotExportOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScreenshotExportOutcome
impl Debug for ScreenshotExportOutcome
Source§impl PartialEq for ScreenshotExportOutcome
impl PartialEq for ScreenshotExportOutcome
impl Eq for ScreenshotExportOutcome
impl StructuralPartialEq for ScreenshotExportOutcome
Auto Trait Implementations§
impl Freeze for ScreenshotExportOutcome
impl RefUnwindSafe for ScreenshotExportOutcome
impl Send for ScreenshotExportOutcome
impl Sync for ScreenshotExportOutcome
impl Unpin for ScreenshotExportOutcome
impl UnsafeUnpin for ScreenshotExportOutcome
impl UnwindSafe for ScreenshotExportOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more