pub enum FrontendMessage {
Startup {
version: i32,
params: Vec<(String, String)>,
},
Password(String),
Query(String),
Terminate,
SaslInitialResponse {
mechanism: String,
data: Vec<u8>,
},
SaslResponse {
data: Vec<u8>,
},
}Expand description
Frontend message (client → server)
Variants§
Startup
Startup message
Password(String)
Password message
Query(String)
Query message
Terminate
Terminate message
SaslInitialResponse
SASL initial response message
Fields
SaslResponse
SASL response message
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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