fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        use CspTlsServerHandshakeError::*;
        match self {
            MalformedClientCertificate(error) => write!(f, "CspTlsServerHandshakeError::MalformedClientCertificate({:?})", error),
            CreateAcceptorError{description, cert_der, internal_error} => write!(f, "CspTlsServerHandshakeError::CreateAcceptorError{{ description: {}, cert_der: {:?}, internal_error: {:?}}}",
                                                                                 description,
                                                                                 cert_der.as_ref().map(|der| base64::encode(&der[..])),
                                                                                 internal_error),
            HandshakeError{internal_error} => write!(f, "CspTlsServerHandshakeError::HandshakeError{{ internal_error: {} }}", internal_error),
            SecretKeyNotFound => write!(f, "CspTlsServerHandshakeError::SecretKeyNotFound"),
            MalformedSecretKey => write!(f, "CspTlsServerHandshakeError::MalformedSecretKey"),
            WrongSecretKeyType => write!(f, "CspTlsServerHandshakeError::WrongSecretKeyType"),
        }
    }
/// 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 CspTlsServerHandshakeError::*;
        match self {
            MalformedClientCertificate(error) => write!(f, "CspTlsServerHandshakeError::MalformedClientCertificate({:?})", error),
            CreateAcceptorError{description, cert_der, internal_error} => write!(f, "CspTlsServerHandshakeError::CreateAcceptorError{{ description: {}, cert_der: {:?}, internal_error: {:?}}}",
                                                                                 description,
                                                                                 cert_der.as_ref().map(|der| base64::encode(&der[..])),
                                                                                 internal_error),
            HandshakeError{internal_error} => write!(f, "CspTlsServerHandshakeError::HandshakeError{{ internal_error: {} }}", internal_error),
            SecretKeyNotFound => write!(f, "CspTlsServerHandshakeError::SecretKeyNotFound"),
            MalformedSecretKey => write!(f, "CspTlsServerHandshakeError::MalformedSecretKey"),
            WrongSecretKeyType => write!(f, "CspTlsServerHandshakeError::WrongSecretKeyType"),
        }
    }
fn fmt ( & self , f : & mut fmt :: Formatter < ' _ > ) -> fmt :: Result { use CspTlsServerHandshakeError :: * ; match self { MalformedClientCertificate ( error ) => write ! ( f " " error ) , CreateAcceptorError { description , cert_der , internal_error } => write ! ( f " " description 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<'_>
&self
f
&mut fmt::Formatter<'_>