pub trait PbWrite {
type Error;
// Required method
fn pb_write(&mut self, data: &[u8]) -> Result<(), Self::Error>;
}Expand description
A writer to which Protobuf data is written, similar to std::io::Write.
PbEncoder uses this trait as the interface for writing encoded Protobuf messages.
This trait is implemented for common byte vector types such as heapless::Vec and
Vec. The implementations are feature-gated.