Skip to main content

cudaLogsCallback_t

Type Alias cudaLogsCallback_t 

Source
pub type cudaLogsCallback_t = Option<unsafe extern "C" fn(data: *mut c_void, logLevel: cudaLogLevel, message: *mut c_char, length: size_t)>;
Expand description

Type of public error reporting callback functions.

User parameter provided at registration

Severity level of the log message

Error log message being reported

Length of the message in bytes

Aliased Type§

pub enum cudaLogsCallback_t {
    None,
    Some(unsafe extern "C" fn(*mut c_void, CUDAlogLevel_enum, *mut i8, u64)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, CUDAlogLevel_enum, *mut i8, u64))

Some value of type T.