pub enum ClipboardErrorKind {
Timeout,
Canceled,
AccessDenied,
Platform,
Other,
}Expand description
The category of a failed clipboard operation.
The reference reports a failed clipboard operation with an exception whose type tells what happened; the kinds mirror the exception types the platform clipboards raise:
| Kind | Reference exception |
|---|---|
Timeout | TimeoutException |
Canceled | OperationCanceledException (and TaskCanceledException) |
AccessDenied | UnauthorizedAccessException |
Platform | COMException (an ExternalException carrying a result code) |
Other | every other exception |
Variants§
Timeout
The clipboard could not be opened or did not answer in time, usually because another application holds it.
Canceled
The operation was canceled before it completed.
AccessDenied
The platform denied access to the clipboard.
Platform
A call of the platform clipboard interface failed with a result
code (see ClipboardError::code).
Other
Any other failure: one a platform clipboard is not expected to report.
Trait Implementations§
Source§impl Clone for ClipboardErrorKind
impl Clone for ClipboardErrorKind
impl Copy for ClipboardErrorKind
Source§impl Debug for ClipboardErrorKind
impl Debug for ClipboardErrorKind
impl Eq for ClipboardErrorKind
Source§impl From<ClipboardErrorKind> for ClipboardError
impl From<ClipboardErrorKind> for ClipboardError
Source§fn from(kind: ClipboardErrorKind) -> ClipboardError
fn from(kind: ClipboardErrorKind) -> ClipboardError
Converts to this type from the input type.
Source§impl Hash for ClipboardErrorKind
impl Hash for ClipboardErrorKind
Source§impl PartialEq for ClipboardErrorKind
impl PartialEq for ClipboardErrorKind
impl StructuralPartialEq for ClipboardErrorKind
Auto Trait Implementations§
impl Freeze for ClipboardErrorKind
impl RefUnwindSafe for ClipboardErrorKind
impl Send for ClipboardErrorKind
impl Sync for ClipboardErrorKind
impl Unpin for ClipboardErrorKind
impl UnsafeUnpin for ClipboardErrorKind
impl UnwindSafe for ClipboardErrorKind
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more