pub fn is_database_connection_exception(&self) -> bool {
        matches!(
            &self.kind,
            CancelStatementErrorKind::DatabaseConnectionException(_)
        )
    }
/// Returns `true` if the error kind is `CancelStatementErrorKind::DatabaseConnectionException`.
Returns `true` if the error kind is `CancelStatementErrorKind::DatabaseConnectionException`.
Returns ` true ` if the error kind is ` CancelStatementErrorKind :: DatabaseConnectionException ` .
pub fn is_database_connection_exception(&self) -> bool {
        matches!(
            &self.kind,
            CancelStatementErrorKind::DatabaseConnectionException(_)
        )
    }
pub fn is_database_connection_exception ( & self ) -> bool { matches ! ( self kind CancelStatementErrorKind DatabaseConnectionException ( ) ) }
Returns `true` if the error kind is `CancelStatementErrorKind::DatabaseConnectionException`.
Returns ` true ` if the error kind is ` CancelStatementErrorKind :: DatabaseConnectionException ` .
&self
&self