pub trait Encode: Sealed + Sized {
type Output: IntoResponse;
// Required method
fn encode<const SYNC_MODE: bool>(
self,
buf: &mut BytesMut,
) -> Result<Self::Output, Error>;
}
Expand description
trait for generic over how to encode a query. currently this trait can not be implement by library user.
Required Associated Types§
Sourcetype Output: IntoResponse
type Output: IntoResponse
output type defines how a potential async row streaming type should be constructed. certain state from the encode type may need to be passed for constructing the stream
Required 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.