blockless-hyper-file 0.1.2

This hyper static file crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt::{self, Display, Formatter};

#[derive(Debug)]
pub enum ParseError {
    // the invalid range
    InvalidRange,
    //NoOverlap
    NoOverlap,
}

impl Display for ParseError {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        match *self {
            ParseError::InvalidRange => write!(f, "invaild range"),
            ParseError::NoOverlap => write!(f, "no overlap"),
        }
    }
}