pub struct PostgresProtoEncoder { /* private fields */ }Implementations§
Source§impl PostgresProtoEncoder
impl PostgresProtoEncoder
pub fn new() -> Result<Self, PostgresConnectError>
pub fn encode_key(&self, key: &EntityKey) -> Result<Bytes, PostgresConnectError>
pub fn encode_value( &self, value: &EntityDifference, ) -> Result<Bytes, PostgresConnectError>
Trait Implementations§
Source§impl Clone for PostgresProtoEncoder
impl Clone for PostgresProtoEncoder
Source§fn clone(&self) -> PostgresProtoEncoder
fn clone(&self) -> PostgresProtoEncoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PostgresProtoEncoder
impl RefUnwindSafe for PostgresProtoEncoder
impl Send for PostgresProtoEncoder
impl Sync for PostgresProtoEncoder
impl Unpin for PostgresProtoEncoder
impl UnsafeUnpin for PostgresProtoEncoder
impl UnwindSafe for PostgresProtoEncoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more