sark-core 0.29.5

Fiber-free request, route, dispatch, and lifecycle core for Sark
1
2
3
4
5
6
7
8
9
10
11
12
/// Preserves the producing protocol or application failure.
#[derive(Debug)]
pub enum Error<C, A> {
    Connection(C),
    Application(A),
}

impl<C, A> From<C> for Error<C, A> {
    fn from(error: C) -> Self {
        Self::Connection(error)
    }
}