Trait quick_protobuf::writer::WriterBackend
source · pub trait WriterBackend {
// Required methods
fn pb_write_u8(&mut self, x: u8) -> Result<()>;
fn pb_write_u32(&mut self, x: u32) -> Result<()>;
fn pb_write_i32(&mut self, x: i32) -> Result<()>;
fn pb_write_f32(&mut self, x: f32) -> Result<()>;
fn pb_write_u64(&mut self, x: u64) -> Result<()>;
fn pb_write_i64(&mut self, x: i64) -> Result<()>;
fn pb_write_f64(&mut self, x: f64) -> Result<()>;
fn pb_write_all(&mut self, buf: &[u8]) -> Result<()>;
}
Expand description
Writer backend abstraction
Required Methods§
sourcefn pb_write_u8(&mut self, x: u8) -> Result<()>
fn pb_write_u8(&mut self, x: u8) -> Result<()>
Write a u8
sourcefn pb_write_u32(&mut self, x: u32) -> Result<()>
fn pb_write_u32(&mut self, x: u32) -> Result<()>
Write a u32
sourcefn pb_write_i32(&mut self, x: i32) -> Result<()>
fn pb_write_i32(&mut self, x: i32) -> Result<()>
Write a i32
sourcefn pb_write_f32(&mut self, x: f32) -> Result<()>
fn pb_write_f32(&mut self, x: f32) -> Result<()>
Write a f32
sourcefn pb_write_u64(&mut self, x: u64) -> Result<()>
fn pb_write_u64(&mut self, x: u64) -> Result<()>
Write a u64
sourcefn pb_write_i64(&mut self, x: i64) -> Result<()>
fn pb_write_i64(&mut self, x: i64) -> Result<()>
Write a i64
sourcefn pb_write_f64(&mut self, x: f64) -> Result<()>
fn pb_write_f64(&mut self, x: f64) -> Result<()>
Write a f64
sourcefn pb_write_all(&mut self, buf: &[u8]) -> Result<()>
fn pb_write_all(&mut self, buf: &[u8]) -> Result<()>
Write all bytes in buf