pub fn read_breakpoint_task_name(core: &mut Core, subprograms: &Vec<Subprogram>) -> Result<String> {
    let optimal = get_current_task_from_lr(core, subprograms)?;

    let name = match optimal {
        Some(s) => s.name,
        None => BKPT_UNKNOWN_NAME.to_string(),
    };
    Ok(name)
}
/// Tries to read the name of the current task from the Subprograms.
///
/// * `core` - A connected probe-rs _core_
/// * `subprograms` - A list of the all the subprograms of the running program
Tries to read the name of the current task from the Subprograms.
`core` - A connected probe-rs _core_
`subprograms` - A list of the all the subprograms of the running program
Tries to read the name of the current task from the Subprograms . ` core ` - A connected probe - rs _core_ ` subprograms ` - A list of the all the subprograms of the running program
pub fn read_breakpoint_task_name(core: &mut Core, subprograms: &Vec<Subprogram>) -> Result<String> {
    let optimal = get_current_task_from_lr(core, subprograms)?;
    let name = match optimal {
        Some(s) => s.name,
        None => BKPT_UNKNOWN_NAME.to_string(),
    };
    Ok(name)
}
pub fn read_breakpoint_task_name ( core : & mut Core , subprograms : & Vec < Subprogram > ) -> Result < String > { let optimal = get_current_task_from_lr ( core , subprograms ) ? ; let name = match optimal { Some ( s ) => s . name , None => BKPT_UNKNOWN_NAME . to_string ( ) , } ; Ok ( name ) }
Tries to read the name of the current task from the Subprograms.
Tries to read the name of the current task from the Subprograms .
core
&mut Core
subprograms
&Vec<Subprogram>
core
&mut Core
subprograms
&Vec<Subprogram>