pub struct AuthenticationHandler { /* private fields */ }Expand description
Handler for authentication protocol.
Implementations§
Source§impl AuthenticationHandler
impl AuthenticationHandler
Sourcepub fn new(
credentials: Credentials,
client_name: String,
client_version: String,
) -> Self
pub fn new( credentials: Credentials, client_name: String, client_version: String, ) -> Self
Create a new authentication handler.
Sourcepub fn build_auth_request(&self) -> AuthRequest
pub fn build_auth_request(&self) -> AuthRequest
Build an authentication request message.
Sourcepub fn build_reconnect_request(&self, session_id: String) -> AuthRequest
pub fn build_reconnect_request(&self, session_id: String) -> AuthRequest
Build a reconnection request with session ID.
Sourcepub fn process_auth_response(
&self,
response: AuthResponse,
) -> Result<AuthResponseData, ConnectionError>
pub fn process_auth_response( &self, response: AuthResponse, ) -> Result<AuthResponseData, ConnectionError>
Process authentication response.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthenticationHandler
impl RefUnwindSafe for AuthenticationHandler
impl Send for AuthenticationHandler
impl Sync for AuthenticationHandler
impl Unpin for AuthenticationHandler
impl UnsafeUnpin for AuthenticationHandler
impl UnwindSafe for AuthenticationHandler
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