pub enum Message {
Show 23 variants
NotImplemented(Bytes),
Canary(u8),
Bind {
portal: Bytes,
stmt_name: Bytes,
parameters: Vec<BindParameter>,
results_formats: Vec<u16>,
},
Execute {
portal: Bytes,
max_rows: u32,
},
Flush(),
Query(Bytes),
SASLInitialResponse {
mecanism: Bytes,
response: Bytes,
},
SASLResponse(Bytes),
SSLRequest(),
StartupMessage {
frame_length: usize,
parameters: Vec<Parameter>,
},
Sync(),
Terminate(),
CancelRequest(Bytes),
Close(Bytes),
CopyData(Bytes),
CopyDone(Bytes),
CopyFail(Bytes),
Describe(Bytes),
FunctionCall(Bytes),
GSSENCRequest(Bytes),
GSSResponse(Bytes),
Parse(Bytes),
PasswordMessage(Bytes),
}
Expand description
TODO(ppiotr3k): write description
Variants§
NotImplemented(Bytes)
Canary(u8)
Bind
Execute
Flush()
Query(Bytes)
SASLInitialResponse
SASLResponse(Bytes)
SSLRequest()
StartupMessage
Sync()
Terminate()
CancelRequest(Bytes)
Close(Bytes)
CopyData(Bytes)
CopyDone(Bytes)
CopyFail(Bytes)
Describe(Bytes)
FunctionCall(Bytes)
GSSENCRequest(Bytes)
GSSResponse(Bytes)
Parse(Bytes)
PasswordMessage(Bytes)
Trait Implementations§
impl Eq for Message
impl PostgresMessage for Message
impl SQLMessage for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more