refactor(lib): improve some trace logs for upgrades

This commit is contained in:
Sean McArthur
2018-06-19 17:38:03 -07:00
parent 9b4083de6b
commit 7d8897537b
4 changed files with 23 additions and 7 deletions

View File

@@ -25,6 +25,7 @@ pub(crate) type ClientTransaction = role::Client;
pub(crate) trait Http1Transaction {
type Incoming;
type Outgoing: Default;
const LOG: &'static str;
fn parse(bytes: &mut BytesMut, ctx: ParseContext) -> ParseResult<Self::Incoming>;
fn encode(enc: Encode<Self::Outgoing>, dst: &mut Vec<u8>) -> ::Result<Encoder>;