pub struct AuthSwitchRequest<'a> { /* private fields */ }Expand description
Authentication Method Switch Request Packet.
If both server and client support CLIENT_PLUGIN_AUTH capability, server can send this packet
to ask client to use another authentication method.
Implementations§
Source§impl<'a> AuthSwitchRequest<'a>
impl<'a> AuthSwitchRequest<'a>
pub fn new( auth_plugin: impl Into<Cow<'a, [u8]>>, plugin_data: impl Into<Cow<'a, [u8]>>, ) -> Self
pub fn auth_plugin(&self) -> AuthPlugin<'_>
pub fn plugin_data(&self) -> &[u8] ⓘ
pub fn into_owned(self) -> AuthSwitchRequest<'static>
Trait Implementations§
Source§impl<'a> Clone for AuthSwitchRequest<'a>
impl<'a> Clone for AuthSwitchRequest<'a>
Source§fn clone(&self) -> AuthSwitchRequest<'a>
fn clone(&self) -> AuthSwitchRequest<'a>
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 moreSource§impl<'a> Debug for AuthSwitchRequest<'a>
impl<'a> Debug for AuthSwitchRequest<'a>
Source§impl<'de> MyDeserialize<'de> for AuthSwitchRequest<'de>
impl<'de> MyDeserialize<'de> for AuthSwitchRequest<'de>
Source§impl MySerialize for AuthSwitchRequest<'_>
impl MySerialize for AuthSwitchRequest<'_>
Source§impl<'a> PartialEq for AuthSwitchRequest<'a>
impl<'a> PartialEq for AuthSwitchRequest<'a>
impl<'a> Eq for AuthSwitchRequest<'a>
impl<'a> StructuralPartialEq for AuthSwitchRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuthSwitchRequest<'a>
impl<'a> RefUnwindSafe for AuthSwitchRequest<'a>
impl<'a> Send for AuthSwitchRequest<'a>
impl<'a> Sync for AuthSwitchRequest<'a>
impl<'a> Unpin for AuthSwitchRequest<'a>
impl<'a> UnwindSafe for AuthSwitchRequest<'a>
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