Struct _ocsd_extern_dcd_cb_fns

Source
#[repr(C)]
pub struct _ocsd_extern_dcd_cb_fns { pub fn_gen_elem_out: fnGenElemOpCB, pub fn_log_error: fnLogErrorCB, pub fn_log_msg: fnLogMsgCB, pub fn_arm_instruction_decode: fnDecodeArmInstCB, pub fn_memory_access: fnMemAccessCB, pub fn_packet_mon: fnPktMonCB, pub fn_packet_data_sink: fnPktDataSinkCB, pub packetCBFlags: c_int, pub lib_context: *const c_void, }
Expand description

an instance of this is owned by the decoder, filled in by the library - allows the CB fns in the library decode tree to be called.

Fields§

§fn_gen_elem_out: fnGenElemOpCB

< Callback to output a generic element.

§fn_log_error: fnLogErrorCB

< Callback to output an error.

§fn_log_msg: fnLogMsgCB

< Callback to output a message.

§fn_arm_instruction_decode: fnDecodeArmInstCB

< Callback to decode an ARM instruction.

§fn_memory_access: fnMemAccessCB

< Callback to access memory images related to the trace capture.

§fn_packet_mon: fnPktMonCB

< Callback to output trace packet to packet monitor.

§fn_packet_data_sink: fnPktDataSinkCB

< Callback to output trace packet to packet sink - if in pack processing only mode.

§packetCBFlags: c_int

< Flags to indicate if the packet sink / packet monitor callbacks are in use. ( OCSD_CUST_DCD_PKT_CB_USE_MON / OCSD_CUST_DCD_PKT_CB_USE_SINK)

§lib_context: *const c_void

< library context pointer - use in callbacks to allow the library to load the correct context data.

Trait Implementations§

Source§

impl Clone for _ocsd_extern_dcd_cb_fns

Source§

fn clone(&self) -> _ocsd_extern_dcd_cb_fns

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for _ocsd_extern_dcd_cb_fns

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for _ocsd_extern_dcd_cb_fns

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.