fnPacketToString

Type Alias fnPacketToString 

Source
pub type fnPacketToString = Option<unsafe extern "C" fn(trc_pkt: *const c_void, buffer: *mut c_char, buflen: c_int) -> ocsd_err_t>;
Expand description

Function to convert a protocol specific trace packet to human readable string

@param *trc_pkt : protocol specific packet structure. @param *buffer : buffer to fill with string. @param buflen : length of string buffer.

@return ocsd_err_t : Library error code - RCDTL_OK if successful

Aliased Type§

pub enum fnPacketToString {
    None,
    Some(unsafe extern "C" fn(*const c_void, *mut i8, i32) -> u32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const c_void, *mut i8, i32) -> u32)

Some value of type T.