#[repr(C)]pub struct breakpoint_type_provider_interface {
pub register_bp: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> uint64>,
pub add_bp: Option<unsafe extern "C" fn(obj: *mut conf_object_t, flags: c_int, data: attr_value_t) -> uint64>,
pub remove_bp: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64)>,
pub trace_msg: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> *const c_char>,
pub break_msg: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> *const c_char>,
pub wait_msg: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> *const c_char>,
pub break_data: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> attr_value_t>,
pub values: Option<unsafe extern "C" fn(obj: *mut conf_object_t, arg: *const c_char, prev_args: attr_value_t) -> attr_value_t>,
pub trace: Option<unsafe extern "C" fn(obj: *mut conf_object_t, msg: *const c_char)>,
}
Fields§
§register_bp: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> uint64>
Register breakpoint in manager. Return breakpoint manager ID, or 0 on error.
add_bp: Option<unsafe extern "C" fn(obj: *mut conf_object_t, flags: c_int, data: attr_value_t) -> uint64>
Add breakpoint and return provider specific ID, or 0 on error.
remove_bp: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64)>
Remove breakpoint, given ID returned by add_bp.
trace_msg: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> *const c_char>
Return trace message, given ID returned by add_bp.
break_msg: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> *const c_char>
Message returned by break command, given ID returned by add_bp.
wait_msg: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> *const c_char>
Script branch wait message, given ID returned by add_bp.
break_data: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bp_id: uint64) -> attr_value_t>
Optional return value from wait-for and run-until commands, given ID returned by add_bp.
values: Option<unsafe extern "C" fn(obj: *mut conf_object_t, arg: *const c_char, prev_args: attr_value_t) -> attr_value_t>
Return possible values for command argument. Optional unless expanders used.
trace: Option<unsafe extern "C" fn(obj: *mut conf_object_t, msg: *const c_char)>
Optional trace output function. The default is to log on the provider with level 1 and group 0.
Trait Implementations§
source§impl Clone for breakpoint_type_provider_interface
impl Clone for breakpoint_type_provider_interface
source§fn clone(&self) -> breakpoint_type_provider_interface
fn clone(&self) -> breakpoint_type_provider_interface
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 Default for breakpoint_type_provider_interface
impl Default for breakpoint_type_provider_interface
source§fn default() -> breakpoint_type_provider_interface
fn default() -> breakpoint_type_provider_interface
Returns the “default value” for a type. Read more
source§impl Ord for breakpoint_type_provider_interface
impl Ord for breakpoint_type_provider_interface
source§fn cmp(&self, other: &breakpoint_type_provider_interface) -> Ordering
fn cmp(&self, other: &breakpoint_type_provider_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for breakpoint_type_provider_interface
impl PartialEq for breakpoint_type_provider_interface
source§fn eq(&self, other: &breakpoint_type_provider_interface) -> bool
fn eq(&self, other: &breakpoint_type_provider_interface) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PartialOrd for breakpoint_type_provider_interface
impl PartialOrd for breakpoint_type_provider_interface
impl Copy for breakpoint_type_provider_interface
impl Eq for breakpoint_type_provider_interface
impl StructuralPartialEq for breakpoint_type_provider_interface
Auto Trait Implementations§
impl Freeze for breakpoint_type_provider_interface
impl RefUnwindSafe for breakpoint_type_provider_interface
impl Send for breakpoint_type_provider_interface
impl Sync for breakpoint_type_provider_interface
impl Unpin for breakpoint_type_provider_interface
impl UnwindSafe for breakpoint_type_provider_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)