use std::marker::PhantomData;
pub struct HeadersDecoder<S> {
_subject: PhantomData<fn() -> S>,
}
pub struct Head<S> {
pub subject: S,
pub version: (),
pub headers: (),
}
pub struct Error;
impl<S> super::Decoder for HeadersDecoder<S> {
type Item = Head<S>;
type Error = Error;
fn decode(&mut self, bytes: &mut BytesMut) -> Result<Option<Self::Item>, Self::Error> {
debug_assert!(!bytes.is_empty(), "decode should always be called with bytes");
}
}