#[non_exhaustive]pub enum ConnectionSetupRequestErrorKind {
Show 15 variants
CqlRequestSerialization(CqlRequestSerializationError),
BodyExtensionsParseError(FrameBodyExtensionsParseError),
UnableToAllocStreamId,
BrokenConnection(BrokenConnectionError),
DbError(DbError, String),
UnexpectedResponse(CqlResponseKind),
CqlSupportedParseError(CqlSupportedParseError),
CqlAuthenticateParseError(CqlAuthenticateParseError),
CqlAuthSuccessParseError(CqlAuthSuccessParseError),
CqlAuthChallengeParseError(CqlAuthChallengeParseError),
CqlErrorParseError(CqlErrorParseError),
StartAuthSessionError(AuthError),
AuthChallengeEvaluationError(AuthError),
AuthFinishError(AuthError),
MissingAuthentication,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CqlRequestSerialization(CqlRequestSerializationError)
Failed to serialize CQL request.
BodyExtensionsParseError(FrameBodyExtensionsParseError)
Failed to deserialize frame body extensions.
UnableToAllocStreamId
Driver was unable to allocate a stream id to execute a setup request on.
BrokenConnection(BrokenConnectionError)
A connection was broken during setup request execution.
DbError(DbError, String)
Received a server error in response to connection setup request.
UnexpectedResponse(CqlResponseKind)
Received an unexpected response from the server.
CqlSupportedParseError(CqlSupportedParseError)
Received a response to OPTIONS request, but failed to deserialize its body.
CqlAuthenticateParseError(CqlAuthenticateParseError)
Received an AUTHENTICATE response, but failed to deserialize its body.
CqlAuthSuccessParseError(CqlAuthSuccessParseError)
Received an AUTH_SUCCESS response, but failed to deserialize its body.
CqlAuthChallengeParseError(CqlAuthChallengeParseError)
Received an AUTH_CHALLENGE response, but failed to deserialize its body.
CqlErrorParseError(CqlErrorParseError)
Received server ERROR response, but failed to deserialize its body.
StartAuthSessionError(AuthError)
An error returned by AuthenticatorProvider::start_authentication_session
.
AuthChallengeEvaluationError(AuthError)
An error returned by AuthenticatorSession::evaluate_challenge
.
AuthFinishError(AuthError)
An error returned by AuthenticatorSession::success
.
MissingAuthentication
User did not provide authentication while the cluster requires it.
See SessionBuilder::user
and/or SessionBuilder::authenticator_provider
.
Trait Implementations§
source§impl Clone for ConnectionSetupRequestErrorKind
impl Clone for ConnectionSetupRequestErrorKind
source§fn clone(&self) -> ConnectionSetupRequestErrorKind
fn clone(&self) -> ConnectionSetupRequestErrorKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Error for ConnectionSetupRequestErrorKind
impl Error for ConnectionSetupRequestErrorKind
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<BrokenConnectionError> for ConnectionSetupRequestErrorKind
impl From<BrokenConnectionError> for ConnectionSetupRequestErrorKind
source§fn from(source: BrokenConnectionError) -> Self
fn from(source: BrokenConnectionError) -> Self
source§impl From<CqlAuthChallengeParseError> for ConnectionSetupRequestErrorKind
impl From<CqlAuthChallengeParseError> for ConnectionSetupRequestErrorKind
source§fn from(source: CqlAuthChallengeParseError) -> Self
fn from(source: CqlAuthChallengeParseError) -> Self
source§impl From<CqlAuthSuccessParseError> for ConnectionSetupRequestErrorKind
impl From<CqlAuthSuccessParseError> for ConnectionSetupRequestErrorKind
source§fn from(source: CqlAuthSuccessParseError) -> Self
fn from(source: CqlAuthSuccessParseError) -> Self
source§impl From<CqlAuthenticateParseError> for ConnectionSetupRequestErrorKind
impl From<CqlAuthenticateParseError> for ConnectionSetupRequestErrorKind
source§fn from(source: CqlAuthenticateParseError) -> Self
fn from(source: CqlAuthenticateParseError) -> Self
source§impl From<CqlErrorParseError> for ConnectionSetupRequestErrorKind
impl From<CqlErrorParseError> for ConnectionSetupRequestErrorKind
source§fn from(source: CqlErrorParseError) -> Self
fn from(source: CqlErrorParseError) -> Self
source§impl From<CqlRequestSerializationError> for ConnectionSetupRequestErrorKind
impl From<CqlRequestSerializationError> for ConnectionSetupRequestErrorKind
source§fn from(source: CqlRequestSerializationError) -> Self
fn from(source: CqlRequestSerializationError) -> Self
source§impl From<CqlSupportedParseError> for ConnectionSetupRequestErrorKind
impl From<CqlSupportedParseError> for ConnectionSetupRequestErrorKind
source§fn from(source: CqlSupportedParseError) -> Self
fn from(source: CqlSupportedParseError) -> Self
source§impl From<FrameBodyExtensionsParseError> for ConnectionSetupRequestErrorKind
impl From<FrameBodyExtensionsParseError> for ConnectionSetupRequestErrorKind
source§fn from(source: FrameBodyExtensionsParseError) -> Self
fn from(source: FrameBodyExtensionsParseError) -> Self
Auto Trait Implementations§
impl !Freeze for ConnectionSetupRequestErrorKind
impl !RefUnwindSafe for ConnectionSetupRequestErrorKind
impl Send for ConnectionSetupRequestErrorKind
impl Sync for ConnectionSetupRequestErrorKind
impl Unpin for ConnectionSetupRequestErrorKind
impl !UnwindSafe for ConnectionSetupRequestErrorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more