From 75072c03fd92b537fd87991e1da2ce91c6a28c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Przytu=C5=82a?= <59482568+wprzytula@users.noreply.github.com> Date: Wed, 11 Dec 2024 07:59:55 +0100 Subject: [PATCH] Merge pull request #1131 from rukai/make_connection_setup_request_error_public Make fields of ConnectionSetupRequestError public (cherry picked from commit affcf82f59e6bcc56dff39d028c2d025b7aa4a49) --- scylla/src/transport/errors.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scylla/src/transport/errors.rs b/scylla/src/transport/errors.rs index 778f33f29..634e2a91b 100644 --- a/scylla/src/transport/errors.rs +++ b/scylla/src/transport/errors.rs @@ -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)]