pub fn read_breakpoint_lock_name(
    core: &mut Core,
    resource_locks: &Vec<Subroutine>,
) -> Result<String> {
    let optimal = get_current_resource_lock(core, resource_locks)?;

    let name = match optimal {
        Some(s) => s.name,
        None => BKPT_UNKNOWN_NAME.to_string(),
    };
    Ok(name)
}
/// Tries to read the name of the resources that is currently locked from the Subroutines.
///
/// * `core` - A connected probe-rs _core_
/// * `resource_locks` - A lsit of all resource locks
Tries to read the name of the resources that is currently locked from the Subroutines.
`core` - A connected probe-rs _core_
`resource_locks` - A lsit of all resource locks
Tries to read the name of the resources that is currently locked from the Subroutines . ` core ` - A connected probe - rs _core_ ` resource_locks ` - A lsit of all resource locks
pub fn read_breakpoint_lock_name(
    core: &mut Core,
    resource_locks: &Vec<Subroutine>,
) -> Result<String> {
    let optimal = get_current_resource_lock(core, resource_locks)?;
    let name = match optimal {
        Some(s) => s.name,
        None => BKPT_UNKNOWN_NAME.to_string(),
    };
    Ok(name)
}
pub fn read_breakpoint_lock_name ( core : & mut Core , resource_locks : & Vec < Subroutine > , ) -> Result < String > { let optimal = get_current_resource_lock ( core , resource_locks ) ? ; let name = match optimal { Some ( s ) => s . name , None => BKPT_UNKNOWN_NAME . to_string ( ) , } ; Ok ( name ) }
Tries to read the name of the resources that is currently locked from the Subroutines.
Tries to read the name of the resources that is currently locked from the Subroutines .
core
&mut Core
resource_locks
&Vec<Subroutine>
core
&mut Core
resource_locks
&Vec<Subroutine>