Files
sqlx/sqlx-postgres-protocol/src/encode.rs
2019-06-22 20:54:43 -07:00

10 lines
231 B
Rust

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