use std::io; pub trait Encode { // TODO: Remove fn size_hint(&self) -> usize { 0 } // FIXME: Use BytesMut and not Vec (also remove the error type here) fn encode(&self, buf: &mut Vec) -> io::Result<()>; }