Enum gdbstub::stub::state_machine::GdbStubStateMachine
source · pub enum GdbStubStateMachine<'a, T, C>where
T: Target,
C: Connection,{
Idle(GdbStubStateMachineInner<'a, Idle<T>, T, C>),
Running(GdbStubStateMachineInner<'a, Running, T, C>),
CtrlCInterrupt(GdbStubStateMachineInner<'a, CtrlCInterrupt, T, C>),
Disconnected(GdbStubStateMachineInner<'a, Disconnected, T, C>),
}
Expand description
State-machine interface to GdbStub
.
See the module level documentation for more details.
Variants§
Idle(GdbStubStateMachineInner<'a, Idle<T>, T, C>)
The target is completely stopped, and the GDB stub is waiting for additional input.
Running(GdbStubStateMachineInner<'a, Running, T, C>)
The target is currently running, and the GDB client is waiting for the target to report a stop reason.
Note that the client may still send packets to the target (e.g: to trigger a Ctrl-C interrupt).
CtrlCInterrupt(GdbStubStateMachineInner<'a, CtrlCInterrupt, T, C>)
The GDB client has sent a Ctrl-C interrupt to the target.
Disconnected(GdbStubStateMachineInner<'a, Disconnected, T, C>)
The GDB client has disconnected.
Trait Implementations§
source§impl<'a, T, C> From<GdbStubStateMachineInner<'a, CtrlCInterrupt, T, C>> for GdbStubStateMachine<'a, T, C>where
T: Target,
C: Connection,
impl<'a, T, C> From<GdbStubStateMachineInner<'a, CtrlCInterrupt, T, C>> for GdbStubStateMachine<'a, T, C>where T: Target, C: Connection,
source§fn from(inner: GdbStubStateMachineInner<'a, CtrlCInterrupt, T, C>) -> Self
fn from(inner: GdbStubStateMachineInner<'a, CtrlCInterrupt, T, C>) -> Self
Converts to this type from the input type.
source§impl<'a, T, C> From<GdbStubStateMachineInner<'a, Disconnected, T, C>> for GdbStubStateMachine<'a, T, C>where
T: Target,
C: Connection,
impl<'a, T, C> From<GdbStubStateMachineInner<'a, Disconnected, T, C>> for GdbStubStateMachine<'a, T, C>where T: Target, C: Connection,
source§fn from(inner: GdbStubStateMachineInner<'a, Disconnected, T, C>) -> Self
fn from(inner: GdbStubStateMachineInner<'a, Disconnected, T, C>) -> Self
Converts to this type from the input type.
source§impl<'a, T, C> From<GdbStubStateMachineInner<'a, Idle<T>, T, C>> for GdbStubStateMachine<'a, T, C>where
T: Target,
C: Connection,
impl<'a, T, C> From<GdbStubStateMachineInner<'a, Idle<T>, T, C>> for GdbStubStateMachine<'a, T, C>where T: Target, C: Connection,
source§fn from(inner: GdbStubStateMachineInner<'a, Idle<T>, T, C>) -> Self
fn from(inner: GdbStubStateMachineInner<'a, Idle<T>, T, C>) -> Self
Converts to this type from the input type.
source§impl<'a, T, C> From<GdbStubStateMachineInner<'a, Running, T, C>> for GdbStubStateMachine<'a, T, C>where
T: Target,
C: Connection,
impl<'a, T, C> From<GdbStubStateMachineInner<'a, Running, T, C>> for GdbStubStateMachine<'a, T, C>where T: Target, C: Connection,
source§fn from(inner: GdbStubStateMachineInner<'a, Running, T, C>) -> Self
fn from(inner: GdbStubStateMachineInner<'a, Running, T, C>) -> Self
Converts to this type from the input type.