pub enum AuthenticationMessage {
Ok,
CleartextPassword,
Md5Password {
salt: [u8; 4],
},
Sasl {
mechanisms: Vec<String>,
},
SaslContinue {
data: Vec<u8>,
},
SaslFinal {
data: Vec<u8>,
},
}Expand description
Authentication message types
Variants§
Ok
Authentication OK
CleartextPassword
Cleartext password required
Md5Password
MD5 password required
Sasl
SASL authentication mechanisms available (Postgres 10+)
SaslContinue
SASL continuation message (server challenge)
SaslFinal
SASL final message (server verification)
Trait Implementations§
Source§impl Clone for AuthenticationMessage
impl Clone for AuthenticationMessage
Source§fn clone(&self) -> AuthenticationMessage
fn clone(&self) -> AuthenticationMessage
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 AuthenticationMessage
impl RefUnwindSafe for AuthenticationMessage
impl Send for AuthenticationMessage
impl Sync for AuthenticationMessage
impl Unpin for AuthenticationMessage
impl UnsafeUnpin for AuthenticationMessage
impl UnwindSafe for AuthenticationMessage
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