mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-25 00:43:00 +01:00
21 lines
497 B
Rust
21 lines
497 B
Rust
|
use std::fmt;
|
||
|
|
||
|
mod service;
|
||
|
|
||
|
/// H1 service response type
|
||
|
pub enum H2ServiceResult<T> {
|
||
|
Disconnected,
|
||
|
Shutdown(T),
|
||
|
}
|
||
|
|
||
|
impl<T: fmt::Debug> fmt::Debug for H2ServiceResult<T> {
|
||
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||
|
match self {
|
||
|
H2ServiceResult::Disconnected => write!(f, "H2ServiceResult::Disconnected"),
|
||
|
H2ServiceResult::Shutdown(ref v) => {
|
||
|
write!(f, "H2ServiceResult::Shutdown({:?})", v)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|