Struct scram::client::ServerFirst [−][src]
The second state of the SCRAM mechanism after the first client message was computed.
Implementations
impl<'a> ServerFirst<'a>
[src]
pub fn handle_server_first(
self,
server_first: &str
) -> Result<ClientFinal, Error>
[src]
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
Auto Trait Implementations
impl<'a> RefUnwindSafe for ServerFirst<'a>
[src]
impl<'a> Send for ServerFirst<'a>
[src]
impl<'a> Sync for ServerFirst<'a>
[src]
impl<'a> Unpin for ServerFirst<'a>
[src]
impl<'a> UnwindSafe for ServerFirst<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,