pub enum DebugAdapterState {
Stopped,
Starting,
Initializing,
Configured,
Running,
ShuttingDown,
Crashed,
}Expand description
State machine for the DAP debug adapter lifecycle.
Tracks the lifecycle of a Debug Adapter Protocol (DAP) adapter process.
§State Diagram
Stopped ──► Starting ──► Initializing ──► Configured ──► Running
▲ │ │ │ │
│ │ │ │ │
│ ▼ ▼ ▼ ▼
│ Crashed ◄──── Crashed ◄──── Crashed ◄──── Crashed
│ │
│ │
│ ShuttingDown│
│ │ │
└────────────────────────────────────────────────┘ │
▲ │
└────────┘§Transitions
Stopped->Starting(start() called)Starting->Initializing(process spawned, DAP initialize sent)Starting->Crashed(spawn failed)Initializing->Configured(initialize response received)Initializing->Crashed(initialize failed or timed out)Configured->Running(launch/attach response received)Configured->Crashed(launch/attach failed)Running->ShuttingDown(disconnect/terminate requested)Running->Crashed(adapter process exited unexpectedly)ShuttingDown->Stopped(adapter exited cleanly)Crashed->Starting(restart attempt)
Variants§
Stopped
No debug adapter process is running.
Starting
The debug adapter process is being spawned.
Initializing
The DAP initialize request has been sent and a response is pending.
Configured
The adapter has been initialized and configured, ready for launch/attach.
Running
The debug session is actively running with a live adapter.
ShuttingDown
A disconnect request has been sent and the adapter is shutting down.
Crashed
The adapter process exited unexpectedly or failed to start.
Trait Implementations§
Source§impl Clone for DebugAdapterState
impl Clone for DebugAdapterState
impl Copy for DebugAdapterState
Source§impl Debug for DebugAdapterState
impl Debug for DebugAdapterState
impl Eq for DebugAdapterState
Source§impl PartialEq for DebugAdapterState
impl PartialEq for DebugAdapterState
impl StructuralPartialEq for DebugAdapterState
Auto Trait Implementations§
impl Freeze for DebugAdapterState
impl RefUnwindSafe for DebugAdapterState
impl Send for DebugAdapterState
impl Sync for DebugAdapterState
impl Unpin for DebugAdapterState
impl UnsafeUnpin for DebugAdapterState
impl UnwindSafe for DebugAdapterState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more