#[non_exhaustive]pub enum ScreenError {
Unavailable,
Denied,
Cancelled,
Busy,
Failed(String),
}Expand description
why a pick or a capture did not happen
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
not possible here (browser without EyeDropper, Android, no X server / portal)
Denied
the app’s permissions lack screen.capture, or the system / the user refused
Cancelled
the user cancelled (Esc, a right click, the portal’s dialog dismissed)
Busy
a pick (or capture) is still running
Failed(String)
the system failed: what it said
Trait Implementations§
Source§impl Clone for ScreenError
impl Clone for ScreenError
Source§fn clone(&self) -> ScreenError
fn clone(&self) -> ScreenError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScreenError
impl Debug for ScreenError
Source§impl Display for ScreenError
impl Display for ScreenError
impl Eq for ScreenError
Source§impl PartialEq for ScreenError
impl PartialEq for ScreenError
impl StructuralPartialEq for ScreenError
Auto Trait Implementations§
impl Forget for ScreenError
impl Freeze for ScreenError
impl RefUnwindSafe for ScreenError
impl Send for ScreenError
impl Sync for ScreenError
impl Unpin for ScreenError
impl UnsafeUnpin for ScreenError
impl UnwindSafe for ScreenError
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