#[non_exhaustive]pub enum AuthMethod {
None,
Password,
Md5,
ScramSha256,
}Expand description
A way for the server to check who connects, for
Config::require_auth.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No check at all: the server lets the connection in without asking
for anything (trust in pg_hba.conf, or peer authentication on a
Unix socket).
Password
The password in clear text (password).
Md5
The MD5 challenge (md5), which an eavesdropper can attack offline.
ScramSha256
SCRAM-SHA-256 (scram-sha-256).
Trait Implementations§
Source§impl Clone for AuthMethod
impl Clone for AuthMethod
impl Copy for AuthMethod
Source§impl Debug for AuthMethod
impl Debug for AuthMethod
impl Eq for AuthMethod
Source§impl Hash for AuthMethod
impl Hash for AuthMethod
Source§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
impl StructuralPartialEq for AuthMethod
Auto Trait Implementations§
impl Forget for AuthMethod
impl Freeze for AuthMethod
impl Move for AuthMethod
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnsafeUnpin for AuthMethod
impl UnwindSafe for AuthMethod
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