winstructs 0.3.2

Common structures used in parsing various windows protocols
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Library error types.

use std::result;
use thiserror::Error;

pub type Result<T> = result::Result<T, Error>;

#[derive(Debug, Error)]
pub enum Error {
    #[error("An I/O error has occurred")]
    IoError {
        #[from]
        source: std::io::Error,
    },
    #[error("Unknown AceType: {}", ace_type)]
    UnknownAceType { ace_type: u8 },
}