#[repr(C)]pub struct _ocsd_extern_dcd_fact {
pub createDecoder: fnCreateCustomDecoder,
pub destroyDecoder: fnDestroyCustomDecoder,
pub csidFromConfig: fnGetCSIDFromConfig,
pub pktToString: fnPacketToString,
pub protocol_id: ocsd_trace_protocol_t,
}Expand description
set of functions and callbacks to create an extern custom decoder in the library via the C API interface. This structure is registered with the library by name and then decoders of the type can be created on the decode tree.
Fields§
§createDecoder: fnCreateCustomDecoder< Function pointer to create a decoder instance.
destroyDecoder: fnDestroyCustomDecoder< Function pointer to destroy a decoder instance.
csidFromConfig: fnGetCSIDFromConfig< Function pointer to extract the CSID from a config structure
pktToString: fnPacketToString< Function pointer to print a trace protocol packet in this decoder
protocol_id: ocsd_trace_protocol_t< protocol ID assigned during registration.
Trait Implementations§
Source§impl Clone for _ocsd_extern_dcd_fact
impl Clone for _ocsd_extern_dcd_fact
Source§fn clone(&self) -> _ocsd_extern_dcd_fact
fn clone(&self) -> _ocsd_extern_dcd_fact
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for _ocsd_extern_dcd_fact
impl Debug for _ocsd_extern_dcd_fact
impl Copy for _ocsd_extern_dcd_fact
Auto Trait Implementations§
impl Freeze for _ocsd_extern_dcd_fact
impl RefUnwindSafe for _ocsd_extern_dcd_fact
impl Send for _ocsd_extern_dcd_fact
impl Sync for _ocsd_extern_dcd_fact
impl Unpin for _ocsd_extern_dcd_fact
impl UnwindSafe for _ocsd_extern_dcd_fact
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more