pub struct DualSession<Phase> { /* private fields */ }Expand description
Typestate witness for the role dual to Session.
Implementations§
Source§impl DualSession<Auth>
impl DualSession<Auth>
Source§impl DualSession<Auth>
impl DualSession<Auth>
Sourcepub const fn negotiate(self) -> DualSession<Auth>
pub const fn negotiate(self) -> DualSession<Auth>
Applies the dual negotiate transition and enters Auth.
Sourcepub const fn ok(self) -> DualSession<AwaitingStartupReady>
pub const fn ok(self) -> DualSession<AwaitingStartupReady>
Applies the dual ok transition and enters AwaitingStartupReady.
Sourcepub const fn cleartext(self) -> DualSession<PasswordResponse>
pub const fn cleartext(self) -> DualSession<PasswordResponse>
Applies the dual cleartext transition and enters PasswordResponse.
Sourcepub const fn md5(self) -> DualSession<PasswordResponse>
pub const fn md5(self) -> DualSession<PasswordResponse>
Applies the dual md5 transition and enters PasswordResponse.
Sourcepub const fn sasl(self) -> DualSession<SaslInitial>
pub const fn sasl(self) -> DualSession<SaslInitial>
Applies the dual sasl transition and enters SaslInitial.
Sourcepub const fn gss(self) -> DualSession<TokenResponse>
pub const fn gss(self) -> DualSession<TokenResponse>
Applies the dual gss transition and enters TokenResponse.
Sourcepub const fn sspi(self) -> DualSession<TokenResponse>
pub const fn sspi(self) -> DualSession<TokenResponse>
Applies the dual sspi transition and enters TokenResponse.
Sourcepub const fn kerberos_v5(self) -> DualSession<TokenResponse>
pub const fn kerberos_v5(self) -> DualSession<TokenResponse>
Applies the dual kerberos_v5 transition and enters TokenResponse.
Sourcepub const fn error(self) -> DualSession<Terminated>
pub const fn error(self) -> DualSession<Terminated>
Applies the dual error transition and enters Terminated.
Source§impl DualSession<PasswordResponse>
impl DualSession<PasswordResponse>
Sourcepub const fn password(self) -> DualSession<AwaitingAuthOk>
pub const fn password(self) -> DualSession<AwaitingAuthOk>
Applies the dual password transition and enters AwaitingAuthOk.
Source§impl DualSession<TokenResponse>
impl DualSession<TokenResponse>
Sourcepub const fn response(self) -> DualSession<TokenChallenge>
pub const fn response(self) -> DualSession<TokenChallenge>
Applies the dual response transition and enters TokenChallenge.
Source§impl DualSession<TokenChallenge>
impl DualSession<TokenChallenge>
Sourcepub const fn continue_token(self) -> DualSession<TokenResponse>
pub const fn continue_token(self) -> DualSession<TokenResponse>
Applies the dual continue_token transition and enters TokenResponse.
Sourcepub const fn ok(self) -> DualSession<AwaitingStartupReady>
pub const fn ok(self) -> DualSession<AwaitingStartupReady>
Applies the dual ok transition and enters AwaitingStartupReady.
Sourcepub const fn error(self) -> DualSession<Terminated>
pub const fn error(self) -> DualSession<Terminated>
Applies the dual error transition and enters Terminated.
Source§impl DualSession<SaslInitial>
impl DualSession<SaslInitial>
Sourcepub const fn initial(self) -> DualSession<Sasl>
pub const fn initial(self) -> DualSession<Sasl>
Applies the dual initial transition and enters Sasl.
Source§impl DualSession<Sasl>
impl DualSession<Sasl>
Sourcepub const fn continue_response(self) -> DualSession<SaslChallenge>
pub const fn continue_response(self) -> DualSession<SaslChallenge>
Applies the dual continue_response transition and enters SaslChallenge.
Sourcepub const fn final_response(self) -> DualSession<SaslFinal>
pub const fn final_response(self) -> DualSession<SaslFinal>
Applies the dual final_response transition and enters SaslFinal.
Sourcepub const fn error(self) -> DualSession<Terminated>
pub const fn error(self) -> DualSession<Terminated>
Applies the dual error transition and enters Terminated.
Source§impl DualSession<SaslChallenge>
impl DualSession<SaslChallenge>
Sourcepub const fn response(self) -> DualSession<Sasl>
pub const fn response(self) -> DualSession<Sasl>
Applies the dual response transition and enters Sasl.
Source§impl DualSession<SaslFinal>
impl DualSession<SaslFinal>
Sourcepub const fn verified(self) -> DualSession<AwaitingAuthOk>
pub const fn verified(self) -> DualSession<AwaitingAuthOk>
Applies the dual verified transition and enters AwaitingAuthOk.
Source§impl DualSession<AwaitingAuthOk>
impl DualSession<AwaitingAuthOk>
Sourcepub const fn ok(self) -> DualSession<AwaitingStartupReady>
pub const fn ok(self) -> DualSession<AwaitingStartupReady>
Applies the dual ok transition and enters AwaitingStartupReady.
Sourcepub const fn error(self) -> DualSession<Terminated>
pub const fn error(self) -> DualSession<Terminated>
Applies the dual error transition and enters Terminated.
Source§impl DualSession<AwaitingStartupReady>
impl DualSession<AwaitingStartupReady>
Sourcepub const fn ready(self) -> DualSession<Ready>
pub const fn ready(self) -> DualSession<Ready>
Applies the dual ready transition and enters Ready.
Trait Implementations§
Source§impl<Phase: Clone> Clone for DualSession<Phase>
impl<Phase: Clone> Clone for DualSession<Phase>
Source§fn clone(&self) -> DualSession<Phase>
fn clone(&self) -> DualSession<Phase>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more