flameshot-rs 0.1.0

Easily integrate flameshot in your project, optionally using the image crate features.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{error::Error, fmt::Display};

#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Hash, Ord)]
pub enum FlameshotError {
    Os(String),
    Flameshot(String),
    #[cfg(feature = "image")]
    Image(String),
}

impl Display for FlameshotError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{:?}", self)
    }
}

impl Error for FlameshotError {}