Skip to content

Commit

Permalink
Make fields of ConnectionSetupRequestError public.
Browse files Browse the repository at this point in the history
This allows user to match on the error and handle the error accordingly.
  • Loading branch information
rukai committed Dec 10, 2024
1 parent 7710af0 commit 9bfd3c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scylla/src/transport/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,10 @@ pub enum TranslationError {
/// It indicates that request needed to initiate a connection failed.
#[derive(Error, Debug, Clone)]
#[error("Failed to perform a connection setup request. Request: {request_kind}, reason: {error}")]
#[non_exhaustive]
pub struct ConnectionSetupRequestError {
request_kind: CqlRequestKind,
error: ConnectionSetupRequestErrorKind,
pub request_kind: CqlRequestKind,
pub error: ConnectionSetupRequestErrorKind,
}

#[derive(Error, Debug, Clone)]
Expand Down

0 comments on commit 9bfd3c2

Please sign in to comment.