pub enum AuthPlugin {
Clear,
Native,
Sha2,
}
Variants§
Clear
mysql_clear_password
Native
mysql_native_password
Sha2
Available on crate feature
caching-sha2-password
only.caching_sha2_password
Default since MySQL 8.4
Implementations§
Source§impl AuthPlugin
impl AuthPlugin
pub fn from_bytes(name: &[u8]) -> Result<AuthPlugin, ProtocolError>
pub const fn as_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Clone for AuthPlugin
impl Clone for AuthPlugin
Source§fn clone(&self) -> AuthPlugin
fn clone(&self) -> AuthPlugin
Returns a copy 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 moreSource§impl Debug for AuthPlugin
impl Debug for AuthPlugin
Source§impl Hash for AuthPlugin
impl Hash for AuthPlugin
Source§impl PartialEq for AuthPlugin
impl PartialEq for AuthPlugin
impl Copy for AuthPlugin
impl Eq for AuthPlugin
impl StructuralPartialEq for AuthPlugin
Auto Trait Implementations§
impl Freeze for AuthPlugin
impl RefUnwindSafe for AuthPlugin
impl Send for AuthPlugin
impl Sync for AuthPlugin
impl Unpin for AuthPlugin
impl UnwindSafe for AuthPlugin
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