pub enum FrontendMessage {
Show 18 variants
Startup(Startup),
SslRequest,
GssEncRequest,
CancelRequest {
process_id: i32,
secret_key: i32,
},
Bind(Bind),
Close(Close),
CopyData(Vec<u8>),
CopyDone,
CopyFail(String),
Describe(Describe),
Execute(Execute),
Flush,
FunctionCall(Vec<u8>),
Parse(Parse),
PasswordMessage(Vec<u8>),
Query(String),
Sync,
Terminate,
}Expand description
A message sent by a PostgreSQL frontend (client → server).
Variants§
Startup(Startup)
SslRequest
GssEncRequest
CancelRequest
Bind(Bind)
Close(Close)
CopyData(Vec<u8>)
CopyDone
CopyFail(String)
Describe(Describe)
Execute(Execute)
Flush
FunctionCall(Vec<u8>)
Parse(Parse)
PasswordMessage(Vec<u8>)
Query(String)
Sync
Terminate
Implementations§
Source§impl FrontendMessage
impl FrontendMessage
Sourcepub fn parse_initial(input: &[u8]) -> Result<Self, ProtocolError>
pub fn parse_initial(input: &[u8]) -> Result<Self, ProtocolError>
Parse an initial message (startup / SSL / cancel / GSS-enc).
The input is the complete message including the leading 4-byte length.
Trait Implementations§
Source§impl Clone for FrontendMessage
impl Clone for FrontendMessage
Source§fn clone(&self) -> FrontendMessage
fn clone(&self) -> FrontendMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrontendMessage
impl Debug for FrontendMessage
Source§impl Encoder<FrontendMessage> for BackendCodec
impl Encoder<FrontendMessage> for BackendCodec
Source§impl PartialEq for FrontendMessage
impl PartialEq for FrontendMessage
Source§fn eq(&self, other: &FrontendMessage) -> bool
fn eq(&self, other: &FrontendMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FrontendMessage
Auto Trait Implementations§
impl Freeze for FrontendMessage
impl RefUnwindSafe for FrontendMessage
impl Send for FrontendMessage
impl Sync for FrontendMessage
impl Unpin for FrontendMessage
impl UnsafeUnpin for FrontendMessage
impl UnwindSafe for FrontendMessage
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