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§
Object Safety§
This trait is not object safe.