clipboard-stream 0.2.1

Async stream of clipboard change events
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::string::FromUtf8Error;

use thiserror::Error;

/// Represents all the ways a method can fail within clipboard-stream.
#[derive(Debug, Error)]
#[error("error")]
pub enum Error {
    /// Error occurred while decode clipboard item as UTF-8
    #[error("failed to decode clipboard item as UTF-8: {0}")]
    FromUtf8Error(#[from] FromUtf8Error),
    /// Error occurred while system call
    #[error("failed to get item")]
    GetItem,
    #[error("same kind of stream is already exists")]
    StreamAlreadyExists,
}