# ClipboardErrorKind

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/platform/enum-clipboarderrorkind/

**enum** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
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 |

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/clipboard_error.rs#L18)

## Members

- [`Timeout`](#variant-timeout)
- [`Canceled`](#variant-canceled)
- [`AccessDenied`](#variant-accessdenied)
- [`Platform`](#variant-platform)
- [`Other`](#variant-other)

<a id="variant-timeout"></a>

### Timeout

```rust
Timeout
```

The clipboard could not be opened or did not answer in time, usually
because another application holds it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/clipboard_error.rs#L21)

<a id="variant-canceled"></a>

### Canceled

```rust
Canceled
```

The operation was canceled before it completed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/clipboard_error.rs#L23)

<a id="variant-accessdenied"></a>

### AccessDenied

```rust
AccessDenied
```

The platform denied access to the clipboard.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/clipboard_error.rs#L25)

<a id="variant-platform"></a>

### Platform

```rust
Platform
```

A call of the platform clipboard interface failed with a result
code (see `ClipboardError::code`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/clipboard_error.rs#L28)

<a id="variant-other"></a>

### Other

```rust
Other
```

Any other failure: one a platform clipboard is not expected to
report.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/clipboard_error.rs#L31)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `From<ClipboardErrorKind>`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
