MCPcopy Create free account
hub / github.com/ciniml/rust-dap / get_string

Method get_string

rust-dap/src/interface.rs:253–260  ·  view source on GitHub ↗
(&self, index: StringIndex, lang_id: u16)

Source from the content-addressed store, hash-verified

251 }
252
253 fn get_string(&self, index: StringIndex, lang_id: LangID) -> Option<&str> {
254 let _ = lang_id;
255 if index == self.serial_string {
256 Some("CMSIS-DAP interface")
257 } else {
258 None
259 }
260 }
261
262 fn control_in(&mut self, xfer: ControlIn<B>) {
263 let request = xfer.request();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected