@@ -2468,12 +2468,14 @@ pub mod api {
24682468 #[ non_exhaustive]
24692469 pub struct TlsHandshakeFailed < ' a > {
24702470 pub session : crate :: event:: TlsSession < ' a > ,
2471+ pub error : & ' a ( dyn core:: error:: Error + Send + Sync + ' static ) ,
24712472 }
24722473 #[ cfg( any( test, feature = "testing" ) ) ]
24732474 impl < ' a > crate :: event:: snapshot:: Fmt for TlsHandshakeFailed < ' a > {
24742475 fn fmt ( & self , fmt : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
24752476 let mut fmt = fmt. debug_struct ( "TlsHandshakeFailed" ) ;
24762477 fmt. field ( "session" , & self . session ) ;
2478+ fmt. field ( "error" , & self . error ) ;
24772479 fmt. finish ( )
24782480 }
24792481 }
@@ -4132,8 +4134,8 @@ pub mod tracing {
41324134 event : & api:: TlsHandshakeFailed ,
41334135 ) {
41344136 let id = context. id ( ) ;
4135- let api:: TlsHandshakeFailed { session } = event;
4136- tracing :: event ! ( target : "tls_handshake_failed" , parent : id , tracing :: Level :: DEBUG , { session = tracing :: field :: debug ( session) } ) ;
4137+ let api:: TlsHandshakeFailed { session, error } = event;
4138+ tracing :: event ! ( target : "tls_handshake_failed" , parent : id , tracing :: Level :: DEBUG , { session = tracing :: field :: debug ( session) , error = tracing :: field :: debug ( error ) } ) ;
41374139 }
41384140 #[ inline]
41394141 fn on_path_challenge_updated (
@@ -6300,13 +6302,15 @@ pub mod builder {
63006302 #[ derive( Clone , Debug ) ]
63016303 pub struct TlsHandshakeFailed < ' a > {
63026304 pub session : crate :: event:: TlsSession < ' a > ,
6305+ pub error : & ' a ( dyn core:: error:: Error + Send + Sync + ' static ) ,
63036306 }
63046307 impl < ' a > IntoEvent < api:: TlsHandshakeFailed < ' a > > for TlsHandshakeFailed < ' a > {
63056308 #[ inline]
63066309 fn into_event ( self ) -> api:: TlsHandshakeFailed < ' a > {
6307- let TlsHandshakeFailed { session } = self ;
6310+ let TlsHandshakeFailed { session, error } = self ;
63086311 api:: TlsHandshakeFailed {
63096312 session : session. into_event ( ) ,
6313+ error : error. into_event ( ) ,
63106314 }
63116315 }
63126316 }
0 commit comments