pub enum ClipboardError {
Changed,
NotFound,
Denied,
Unsupported,
Failed(String),
}Expand description
Why the clipboard was not read or written.
Variants§
Changed
The clipboard changed since the item was listed; for a dragged item, its drop was reported, and the system let its data go.
NotFound
The item is not offered in that type.
Denied
The user, or what they set, does not let the app read or write it; for a dragged item, the user has not dropped it.
Unsupported
A form or a type this host’s system cannot carry, such as a promised file where it has no file promises.
Failed(String)
The system failed, or a promised form was not produced.
Trait Implementations§
Source§impl Clone for ClipboardError
impl Clone for ClipboardError
Source§impl Debug for ClipboardError
impl Debug for ClipboardError
Source§impl Display for ClipboardError
impl Display for ClipboardError
impl Eq for ClipboardError
Source§impl Error for ClipboardError
impl Error for ClipboardError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ClipboardError
impl PartialEq for ClipboardError
impl StructuralPartialEq for ClipboardError
Auto Trait Implementations§
impl Freeze for ClipboardError
impl RefUnwindSafe for ClipboardError
impl Send for ClipboardError
impl Sync for ClipboardError
impl Unpin for ClipboardError
impl UnsafeUnpin for ClipboardError
impl UnwindSafe for ClipboardError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.