ClipboardErrorKind
enum · ferroui-base · v0.5.0
enum ClipboardErrorKind
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 |
Members
Timeout
Timeout
The clipboard could not be opened or did not answer in time, usually because another application holds it.
Canceled
Canceled
The operation was canceled before it completed.
AccessDenied
AccessDenied
The platform denied access to the clipboard.
Platform
Platform
A call of the platform clipboard interface failed with a result
code (see ClipboardError::code).
Other
Other
Any other failure: one a platform clipboard is not expected to report.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqHashFrom<ClipboardErrorKind>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.