1 use super::prelude::*; 2 use crate::protocol::commands::ext::NoAckMode; 3 4 impl<T: Target, C: Connection> GdbStubImpl<T, C> { handle_no_ack_mode( &mut self, _res: &mut ResponseWriter<'_, C>, target: &mut T, command: NoAckMode, ) -> Result<HandlerStatus, Error<T::Error, C::Error>>5 pub(crate) fn handle_no_ack_mode( 6 &mut self, 7 _res: &mut ResponseWriter<'_, C>, 8 target: &mut T, 9 command: NoAckMode, 10 ) -> Result<HandlerStatus, Error<T::Error, C::Error>> { 11 if !target.use_no_ack_mode() { 12 return Ok(HandlerStatus::Handled); 13 } 14 15 crate::__dead_code_marker!("no_ack_mode", "impl"); 16 17 let handler_status = match command { 18 NoAckMode::QStartNoAckMode(_) => { 19 self.features.set_no_ack_mode(true); 20 HandlerStatus::NeedsOk 21 } 22 }; 23 Ok(handler_status) 24 } 25 } 26