pub enum FrontendMessage {
Show 18 variants
Startup {
params: Vec<(String, String)>,
},
SslRequest,
CancelRequest {
process_id: i32,
secret_key: i32,
},
Query {
sql: String,
},
Parse {
name: String,
sql: String,
param_types: Vec<Oid>,
},
Bind {
portal: String,
statement: String,
param_formats: Vec<FormatCode>,
params: Vec<Option<Vec<u8>>>,
result_formats: Vec<FormatCode>,
},
Describe {
variant: u8,
name: String,
},
Execute {
portal: String,
max_rows: i32,
},
Close {
variant: u8,
name: String,
},
Sync,
Flush,
CopyData {
data: Vec<u8>,
},
CopyDone,
CopyFail {
message: String,
},
PasswordMessage {
password: Vec<u8>,
},
SaslInitialResponse {
mechanism: String,
data: Vec<u8>,
},
SaslResponse {
data: Vec<u8>,
},
Terminate,
}Variants§
Startup
SslRequest
CancelRequest
Query
Parse
Bind
Describe
Execute
Close
Sync
Flush
CopyData
CopyDone
CopyFail
PasswordMessage
SaslInitialResponse
SaslResponse
Terminate
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 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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