pub struct ScramClientHandshake { /* private fields */ }Expand description
Transport-independent SCRAM-SHA-256 client exchange.
Implementations§
Source§impl ScramClientHandshake
impl ScramClientHandshake
Sourcepub fn new(
username: impl Into<String>,
password: impl Into<String>,
client_nonce: impl Into<String>,
) -> Result<Self, ScramClientError>
pub fn new( username: impl Into<String>, password: impl Into<String>, client_nonce: impl Into<String>, ) -> Result<Self, ScramClientError>
Create a client driver with adapter-supplied randomness.
Sourcepub fn start(&mut self) -> Result<ScramClientOutput, ScramClientError>
pub fn start(&mut self) -> Result<ScramClientOutput, ScramClientError>
Start the exchange by producing the client-first-message.
Sourcepub fn step(
&mut self,
kind: MessageKind,
payload: &[u8],
) -> Result<ScramClientOutput, ScramClientError>
pub fn step( &mut self, kind: MessageKind, payload: &[u8], ) -> Result<ScramClientOutput, ScramClientError>
Consume one server frame and produce the next adapter action.
Auto Trait Implementations§
impl Freeze for ScramClientHandshake
impl RefUnwindSafe for ScramClientHandshake
impl Send for ScramClientHandshake
impl Sync for ScramClientHandshake
impl Unpin for ScramClientHandshake
impl UnsafeUnpin for ScramClientHandshake
impl UnwindSafe for ScramClientHandshake
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