pub fn read_next<T: StacksMessageCodec, R: Read>(fd: &mut R) -> Result<T, Error>