Struct scram_tmp::client::ServerFirst [−][src]
pub struct ServerFirst<'a> { /* fields omitted */ }
The second state of the SCRAM mechanism after the first client message was computed.
Methods
impl<'a> ServerFirst<'a>
[src]
impl<'a> ServerFirst<'a>
pub fn handle_server_first(
self,
server_first: &str
) -> Result<ClientFinal, Error>
[src]
pub fn handle_server_first(
self,
server_first: &str
) -> Result<ClientFinal, Error>
Processes the first answer from the server and returns the next state or an error. If an error is returned the SCRAM handshake is aborted.
Call the ClientFinal::client_final
method
to continue the handshake.
Return value
This method returns only a subset of the errors defined in Error
:
- Error::Protocol
- Error::UnsupportedExtension
Trait Implementations
impl<'a> Debug for ServerFirst<'a>
[src]
impl<'a> Debug for ServerFirst<'a>
Auto Trait Implementations
impl<'a> Send for ServerFirst<'a>
impl<'a> Send for ServerFirst<'a>
impl<'a> Sync for ServerFirst<'a>
impl<'a> Sync for ServerFirst<'a>