@@ -14,21 +14,27 @@ use crate::errors::TranslationError;
1414use crate :: network:: tls:: { TlsConfig , TlsError } ;
1515use 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 ) ]
1920pub 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]
160166pub 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}
0 commit comments