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,

source§

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,

source§

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,

source§

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,

source§

fn from(inner: GdbStubStateMachineInner<'a, Running, T, C>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a, T, C> RefUnwindSafe for GdbStubStateMachine<'a, T, C>

§

impl<'a, T, C> Send for GdbStubStateMachine<'a, T, C>
where C: Send, T: Send, <<T as Target>::Arch as Arch>::Usize: Send,

§

impl<'a, T, C> Sync for GdbStubStateMachine<'a, T, C>
where C: Sync, T: Sync, <<T as Target>::Arch as Arch>::Usize: Sync,

§

impl<'a, T, C> Unpin for GdbStubStateMachine<'a, T, C>
where C: Unpin, T: Unpin, <<T as Target>::Arch as Arch>::Usize: Unpin,

§

impl<'a, T, C> !UnwindSafe for GdbStubStateMachine<'a, T, C>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.