/// Prints in a developer-friendly format.
///
/// The standard rust encoding is used for all fields except DER
/// certificates, which are printed as base64 rather than arrays of
/// integers.
Prints in a developer-friendly format.
The standard rust encoding is used for all fields except DER
certificates, which are printed as base64 rather than arrays of
integers.
Prints in a developer - friendly format . The standard rust encoding is used for all fields except DER certificates which are printed as base64 rather than arrays of integers .
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        use CspTlsClientHandshakeError::*;
        match self {
            MalformedServerCertificate(cert) => write!(
                f,
                "CspTlsClientHandshakeError::MalformedServerCertificate({:?})",
                cert
            ),
            CreateConnectorError {
                description,
                client_cert_der,
                server_cert_der,
                internal_error,
            } => {
                write!(f, "CspTlsClientHandshakeError::CreateConnectorError{{ description: {}, client_cert_der: {:?}, server_cert_der: {:?}, internal_error: {}}}",
                          description,
                          client_cert_der.as_ref().map(|der| base64::encode(&der)),
                          server_cert_der.as_ref().map(|der| base64::encode(&der)),
                          internal_error)
            }
            HandshakeError { internal_error } => write!(
                f,
                "CspTlsClientHandshakeError::HandshakeError{{ internal_error: {} }}",
                internal_error
            ),
            SecretKeyNotFound => write!(f, "CspTlsClientHandshakeError::SecretKeyNotFound"),
            MalformedSecretKey => write!(f, "CspTlsClientHandshakeError::MalformedSecretKey"),
            WrongSecretKeyType => write!(f, "CspTlsClientHandshakeError::WrongSecretKeyType"),
        }
    }
fn fmt ( & self , f : & mut fmt :: Formatter < ' _ > ) -> fmt :: Result { use CspTlsClientHandshakeError :: * ; match self { MalformedServerCertificate ( cert ) => write ! ( f " " cert ) , CreateConnectorError { description , client_cert_der , server_cert_der , internal_error , } => { write ! ( f " " description client_cert_der as_ref ( ) map ( der base64 encode ( der ) ) server_cert_der as_ref ( ) map ( der base64 encode ( der ) ) internal_error ) } HandshakeError { internal_error } => write ! ( f " " internal_error ) , SecretKeyNotFound => write ! ( f " " ) , MalformedSecretKey => write ! ( f " " ) , WrongSecretKeyType => write ! ( f " " ) , } }
Prints in a developer-friendly format.
Prints in a developer - friendly format .
&self
f
&mut fmt::Formatter<'_>