1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
use crate::postgres::protocol::{ Authentication, BackendKeyData, CommandComplete, DataRow, NotificationResponse, ParameterDescription, ParameterStatus, ReadyForQuery, Response, RowDescription, }; #[derive(Debug)] #[repr(u8)] pub enum Message { Authentication(Box<Authentication>), ParameterStatus(Box<ParameterStatus>), BackendKeyData(BackendKeyData), ReadyForQuery(ReadyForQuery), CommandComplete(CommandComplete), DataRow(DataRow), Response(Box<Response>), NotificationResponse(Box<NotificationResponse>), ParseComplete, BindComplete, CloseComplete, NoData, PortalSuspended, ParameterDescription(Box<ParameterDescription>), RowDescription(Box<RowDescription>), }