pub struct ServerFinal { /* private fields */ }
Expand description
The final state of the SCRAM mechanism after the final client message was computed.
Implementations§
Source§impl ServerFinal
impl ServerFinal
Sourcepub fn handle_server_final(self, server_final: &str) -> Result<(), Error>
pub fn handle_server_final(self, server_final: &str) -> Result<(), Error>
Processes the final answer from the server and returns the authentication result.
§Return value
- A value of
Ok(())
signals a successful authentication attempt. - A value of
Err(Error::Protocol(_)
orErr(Error::UnsupportedExtension)
means that the authentication request failed. - A value of
Err(Error::InvalidServer)
orErr(Error::Authentication(_))
means that the authentication request was rejected.
Detailed semantics are documented in the Error
type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerFinal
impl RefUnwindSafe for ServerFinal
impl Send for ServerFinal
impl Sync for ServerFinal
impl Unpin for ServerFinal
impl UnwindSafe for ServerFinal
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