pub struct Session<Phase> { /* private fields */ }Expand description
Zero-sized typestate witness for this protocol role.
Implementations§
Source§impl Session<Auth>
impl Session<Auth>
Sourcepub const fn ok(self) -> Session<AwaitingStartupReady>
pub const fn ok(self) -> Session<AwaitingStartupReady>
Applies ok and enters AwaitingStartupReady.
Sourcepub const fn cleartext(self) -> Session<PasswordResponse>
pub const fn cleartext(self) -> Session<PasswordResponse>
Applies cleartext and enters PasswordResponse.
Sourcepub const fn md5(self) -> Session<PasswordResponse>
pub const fn md5(self) -> Session<PasswordResponse>
Applies md5 and enters PasswordResponse.
Sourcepub const fn sasl(self) -> Session<SaslInitial>
pub const fn sasl(self) -> Session<SaslInitial>
Applies sasl and enters SaslInitial.
Sourcepub const fn gss(self) -> Session<TokenResponse>
pub const fn gss(self) -> Session<TokenResponse>
Applies gss and enters TokenResponse.
Sourcepub const fn sspi(self) -> Session<TokenResponse>
pub const fn sspi(self) -> Session<TokenResponse>
Applies sspi and enters TokenResponse.
Sourcepub const fn kerberos_v5(self) -> Session<TokenResponse>
pub const fn kerberos_v5(self) -> Session<TokenResponse>
Applies kerberos_v5 and enters TokenResponse.
Sourcepub const fn error(self) -> Session<Terminated>
pub const fn error(self) -> Session<Terminated>
Applies error and enters Terminated.
Source§impl Session<PasswordResponse>
impl Session<PasswordResponse>
Sourcepub const fn password(self) -> Session<AwaitingAuthOk>
pub const fn password(self) -> Session<AwaitingAuthOk>
Applies password and enters AwaitingAuthOk.
Source§impl Session<TokenResponse>
impl Session<TokenResponse>
Sourcepub const fn response(self) -> Session<TokenChallenge>
pub const fn response(self) -> Session<TokenChallenge>
Applies response and enters TokenChallenge.
Source§impl Session<TokenChallenge>
impl Session<TokenChallenge>
Sourcepub const fn continue_token(self) -> Session<TokenResponse>
pub const fn continue_token(self) -> Session<TokenResponse>
Applies continue_token and enters TokenResponse.
Sourcepub const fn ok(self) -> Session<AwaitingStartupReady>
pub const fn ok(self) -> Session<AwaitingStartupReady>
Applies ok and enters AwaitingStartupReady.
Sourcepub const fn error(self) -> Session<Terminated>
pub const fn error(self) -> Session<Terminated>
Applies error and enters Terminated.
Source§impl Session<SaslInitial>
impl Session<SaslInitial>
Source§impl Session<Sasl>
impl Session<Sasl>
Sourcepub const fn continue_response(self) -> Session<SaslChallenge>
pub const fn continue_response(self) -> Session<SaslChallenge>
Applies continue_response and enters SaslChallenge.
Sourcepub const fn final_response(self) -> Session<SaslFinal>
pub const fn final_response(self) -> Session<SaslFinal>
Applies final_response and enters SaslFinal.
Sourcepub const fn error(self) -> Session<Terminated>
pub const fn error(self) -> Session<Terminated>
Applies error and enters Terminated.
Source§impl Session<SaslChallenge>
impl Session<SaslChallenge>
Source§impl Session<SaslFinal>
impl Session<SaslFinal>
Sourcepub const fn verified(self) -> Session<AwaitingAuthOk>
pub const fn verified(self) -> Session<AwaitingAuthOk>
Applies verified and enters AwaitingAuthOk.
Source§impl Session<AwaitingAuthOk>
impl Session<AwaitingAuthOk>
Sourcepub const fn ok(self) -> Session<AwaitingStartupReady>
pub const fn ok(self) -> Session<AwaitingStartupReady>
Applies ok and enters AwaitingStartupReady.
Sourcepub const fn error(self) -> Session<Terminated>
pub const fn error(self) -> Session<Terminated>
Applies error and enters Terminated.