pub enum AuthExternalProjection<Transport, SourceCleanliness> {
Negotiate {
connection: Conn<Transport, Auth, SourceCleanliness>,
message: AuthNegotiateExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
Ok {
connection: Conn<Transport, AwaitingStartupReady, SourceCleanliness>,
message: AuthOkExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
Cleartext {
connection: Conn<Transport, PasswordResponse, SourceCleanliness>,
message: AuthCleartextExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
Md5 {
connection: Conn<Transport, PasswordResponse, SourceCleanliness>,
message: AuthMd5ExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
Sasl {
connection: Conn<Transport, SaslInitial, SourceCleanliness>,
message: AuthSaslExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
Gss {
connection: Conn<Transport, TokenResponse, SourceCleanliness>,
message: AuthGssExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
Sspi {
connection: Conn<Transport, TokenResponse, SourceCleanliness>,
message: AuthSspiExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
KerberosV5 {
connection: Conn<Transport, TokenResponse, SourceCleanliness>,
message: AuthKerberosV5ExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
Error {
connection: Conn<Transport, Terminated, SourceCleanliness>,
message: AuthErrorExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
// some variants omitted
}Expand description
Typed next-connection projection for AuthExternalMessage.
Variants§
Negotiate
The Event::Negotiate transition and its correctly typed next connection.
Fields
connection: Conn<Transport, Auth, SourceCleanliness>Connection after applying the selected message transition.
message: AuthNegotiateExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
Ok
The Event::Ok transition and its correctly typed next connection.
Fields
connection: Conn<Transport, AwaitingStartupReady, SourceCleanliness>Connection after applying the selected message transition.
message: AuthOkExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
Cleartext
The Event::Cleartext transition and its correctly typed next connection.
Fields
connection: Conn<Transport, PasswordResponse, SourceCleanliness>Connection after applying the selected message transition.
message: AuthCleartextExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
Md5
The Event::Md5 transition and its correctly typed next connection.
Fields
connection: Conn<Transport, PasswordResponse, SourceCleanliness>Connection after applying the selected message transition.
message: AuthMd5ExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
Sasl
The Event::Sasl transition and its correctly typed next connection.
Fields
connection: Conn<Transport, SaslInitial, SourceCleanliness>Connection after applying the selected message transition.
message: AuthSaslExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
Gss
The Event::Gss transition and its correctly typed next connection.
Fields
connection: Conn<Transport, TokenResponse, SourceCleanliness>Connection after applying the selected message transition.
message: AuthGssExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
Sspi
The Event::Sspi transition and its correctly typed next connection.
Fields
connection: Conn<Transport, TokenResponse, SourceCleanliness>Connection after applying the selected message transition.
message: AuthSspiExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
KerberosV5
The Event::KerberosV5 transition and its correctly typed next connection.
Fields
connection: Conn<Transport, TokenResponse, SourceCleanliness>Connection after applying the selected message transition.
message: AuthKerberosV5ExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
Error
The Event::Error transition and its correctly typed next connection.
Fields
connection: Conn<Transport, Terminated, SourceCleanliness>Connection after applying the selected message transition.
message: AuthErrorExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.