libharuhishot 0.7.1

impl screencopy for wayland
Documentation
use std::io;
use thiserror::Error;
use wayland_client::{
    ConnectError, DispatchError,
    globals::{BindError, GlobalError},
};

/// This describe the error happens during screenshot
#[derive(Error, Debug)]
pub enum HaruhiError {
    #[error("Init Failed connection")]
    InitFailedConnection(#[from] ConnectError),
    #[error("Init Failed Global")]
    InitFailedGlobal(#[from] GlobalError),
    #[error("Dispatch Error")]
    DispatchError(#[from] DispatchError),
    #[error("Error during queue")]
    BindError(#[from] BindError),
    #[error("Error in write image in shm")]
    ShmError(#[from] io::Error),
    #[error("Not Support format")]
    NotSupportFormat,
    #[error("Capture Failed")]
    CaptureFailed(String),
}