Skip to main content

euv_ui/hook/use_clipboard/
enum.rs

1use super::*;
2
3/// The outcome of the last clipboard write.
4///
5/// The clipboard is asynchronous, so the status is what a render
6/// closure reads: the write is *started* synchronously and the status
7/// settles once the browser has answered.
8#[derive(Clone, Copy, Debug, Eq, PartialEq)]
9pub enum UseClipboardStatus {
10    /// No write has been attempted yet.
11    Idle,
12    /// The last write succeeded.
13    Copied,
14    /// The last write was rejected by the browser.
15    Failed,
16    /// The host has no usable clipboard, or refused to grant access.
17    Unavailable,
18}