Enum AuthType Copy item path Source pub enum AuthType {
Deny,
Trust,
Plain,
Md5,
ScramSha256,
}
Expand description Specifies the type of authentication or indicates the authentication method used for a connection.
Denies a login or indicates that a connection was denied.
When used with the server, this will cause it to emulate the given
authentication type, but unconditionally return a failure.
This is used for testing purposes, and to emulate timing when a user
does not exist.
Trusts a login without requiring authentication, or indicates
that a connection required no authentication.
When used with the server side of the handshake, this will cause it to
emulate the given authentication type, but unconditionally succeed.
Not compatible with SCRAM-SHA-256 as that protocol requires server and client
to cryptographically agree on a password.
Plain text authentication, or indicates that plain text authentication was required.
MD5 password authentication, or indicates that MD5 password authentication was required.
SCRAM-SHA-256 authentication, or indicates that SCRAM-SHA-256 authentication was required.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Returns the “default value” for a type.
Read more Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.