pub trait Encode<'en, Context = ()> {
// Required method
fn encode_with(&self, buf: &mut Vec<u8>, context: Context);
// Provided method
fn encode(&self, buf: &mut Vec<u8>)
where Self: Encode<'en, ()> { ... }
}
Required Methods§
fn encode_with(&self, buf: &mut Vec<u8>, context: Context)
Provided Methods§
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§
Implementors§
impl Encode<'_> for Close
Available on crate feature
postgres
only.impl Encode<'_> for Describe
Available on crate feature
postgres
only.impl Encode<'_> for Password<'_>
Available on crate feature
postgres
only.impl Encode<'_> for Bind<'_>
Available on crate feature
postgres
only.impl Encode<'_> for CopyDone
Available on crate feature
postgres
only.impl Encode<'_> for CopyFail
Available on crate feature
postgres
only.impl Encode<'_> for Execute
Available on crate feature
postgres
only.impl Encode<'_> for Flush
Available on crate feature
postgres
only.impl Encode<'_> for Parse<'_>
Available on crate feature
postgres
only.impl Encode<'_> for Query<'_>
Available on crate feature
postgres
only.impl Encode<'_> for SaslInitialResponse<'_>
Available on crate feature
postgres
only.impl Encode<'_> for SaslResponse<'_>
Available on crate feature
postgres
only.impl Encode<'_> for SslRequest
Available on crate feature
postgres
only.impl Encode<'_> for Startup<'_>
Available on crate feature
postgres
only.impl Encode<'_> for Sync
Available on crate feature
postgres
only.impl Encode<'_> for Terminate
Available on crate feature
postgres
only.impl<B: Deref<Target = [u8]>> Encode<'_> for CopyData<B>
Available on crate feature
postgres
only.