Trait PgBufMutExt

Source
pub trait PgBufMutExt {
    // Required methods
    fn put_length_prefixed<F>(&mut self, f: F)
       where F: FnOnce(&mut Vec<u8>);
    fn put_statement_name(&mut self, id: Oid);
    fn put_portal_name(&mut self, id: Option<Oid>);
}
Available on crate feature postgres only.

Required Methods§

Source

fn put_length_prefixed<F>(&mut self, f: F)
where F: FnOnce(&mut Vec<u8>),

Source

fn put_statement_name(&mut self, id: Oid)

Source

fn put_portal_name(&mut self, id: Option<Oid>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PgBufMutExt for Vec<u8>

Source§

fn put_length_prefixed<F>(&mut self, f: F)
where F: FnOnce(&mut Vec<u8>),

Source§

fn put_statement_name(&mut self, id: Oid)

Source§

fn put_portal_name(&mut self, id: Option<Oid>)

Implementors§