Skip to content

Commit 997ce22

Browse files
committed
cloud: add missing documentation
1 parent b1f9605 commit 997ce22

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

scylla/src/cloud/config.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,27 @@ use crate::errors::TranslationError;
1414
use crate::network::tls::{TlsConfig, TlsError};
1515
use crate::policies::address_translator::{AddressTranslator, UntranslatedPeer};
1616

17+
/// Error that can occur while parsing the cloud config yaml file.
1718
#[non_exhaustive]
1819
#[derive(Debug, Error)]
1920
pub enum CloudConfigError {
21+
/// Error while opening cloud config yaml.
2022
#[error("Error while opening cloud config yaml: {0}")]
2123
YamlOpen(#[from] io::Error),
2224

25+
/// Error while parsing cloud config yaml.
2326
#[error("Error while parsing cloud config yaml: {0}")]
2427
YamlParse(#[from] serde_yaml::Error),
2528

29+
/// Error while decoding base64 key/cert.
2630
#[error("Error while decoding base64 key/cert: {0}")]
2731
Base64(#[from] base64::DecodeError),
2832

33+
/// Error during cloud config validation.
2934
#[error("Error during cloud config validation: {0}")]
3035
Validation(String),
3136

37+
/// Error during TLS key/cert parsing.
3238
#[error("Error during key/cert parsing: {0}")]
3339
Tls(#[from] TlsError),
3440
}
@@ -158,8 +164,10 @@ impl AddressTranslator for CloudConfig {
158164
#[derive(Debug, Clone, Copy)]
159165
#[non_exhaustive]
160166
pub enum CloudTlsProvider {
167+
/// OpenSSL 0.10 - backed TLS provider.
161168
#[cfg(feature = "openssl-010")]
162169
OpenSsl010,
170+
/// Rustls 0.23 - backed TLS provider.
163171
#[cfg(feature = "rustls-023")]
164172
Rustls023,
165173
}

scylla/src/cloud/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Support for connecting to ScyllaDB Serverless Cloud.
2+
13
mod config;
24

35
pub use config::CloudConfig;

0 commit comments

Comments
 (0)