Skip to main content

ErrorCallback

Trait ErrorCallback 

Source
pub trait ErrorCallback: Sized {
    // Required method
    fn report_error(
        &self,
        code: PxErrorCode,
        message: &str,
        file: &str,
        line: u32,
    );

    // Provided method
    unsafe fn into_px(self) -> *mut PxErrorCallback { ... }
}

Required Methods§

Source

fn report_error(&self, code: PxErrorCode, message: &str, file: &str, line: u32)

Provided Methods§

Source

unsafe fn into_px(self) -> *mut PxErrorCallback

§Safety

Do not override this method.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§