1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
/** * [Notice Processing](https://www.postgresql.org/docs/current/libpq-notice-processing.html) */ impl Connection { /** * # Safety * * This function takes a `void*` pointer as argument. */ pub unsafe fn set_notice_processor( &self, proc: NoticeProcessor, arg: *mut libc::c_void, ) -> NoticeProcessor { pq_sys::PQsetNoticeProcessor(self.into(), proc, arg) } /** * # Safety * * This function takes a `void*` pointer as argument. */ pub unsafe fn set_notice_receiver( &self, proc: NoticeReceiver, arg: *mut libc::c_void, ) -> NoticeReceiver { pq_sys::PQsetNoticeReceiver(self.into(), proc, arg) } }