pub struct DualSession<Phase> { /* private fields */ }Expand description
Typestate witness for the role dual to Session.
Implementations§
Source§impl DualSession<Startup>
impl DualSession<Startup>
Source§impl DualSession<Startup>
impl DualSession<Startup>
Sourcepub const fn begin(self) -> DualSession<Auth>
pub const fn begin(self) -> DualSession<Auth>
Applies the dual begin transition and enters Auth.
Sourcepub const fn reject(self) -> DualSession<Terminated>
pub const fn reject(self) -> DualSession<Terminated>
Applies the dual reject transition and enters Terminated.
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 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 ok(self) -> DualSession<StartupReady>
pub const fn ok(self) -> DualSession<StartupReady>
Applies the dual ok transition and enters StartupReady.
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 response(self) -> DualSession<Auth>
pub const fn response(self) -> DualSession<Auth>
Applies the dual response transition and enters Auth.
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<SaslResponse>
pub const fn continue_response(self) -> DualSession<SaslResponse>
Applies the dual continue_response transition and enters SaslResponse.
Sourcepub const fn final_response(self) -> DualSession<Auth>
pub const fn final_response(self) -> DualSession<Auth>
Applies the dual final_response transition and enters Auth.
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<SaslResponse>
impl DualSession<SaslResponse>
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<TokenResponse>
impl DualSession<TokenResponse>
Sourcepub const fn response(self) -> DualSession<TokenPolicy>
pub const fn response(self) -> DualSession<TokenPolicy>
Applies the dual response transition and enters TokenPolicy.
Source§impl DualSession<TokenPolicy>
impl DualSession<TokenPolicy>
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 verified(self) -> DualSession<Auth>
pub const fn verified(self) -> DualSession<Auth>
Applies the dual verified transition and enters Auth.
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<StartupReady>
impl DualSession<StartupReady>
Sourcepub const fn parameter_status(self) -> DualSession<StartupReady>
pub const fn parameter_status(self) -> DualSession<StartupReady>
Applies the dual parameter_status transition and enters StartupReady.
Sourcepub const fn backend_key_data(self) -> DualSession<StartupReady>
pub const fn backend_key_data(self) -> DualSession<StartupReady>
Applies the dual backend_key_data transition and enters StartupReady.
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