pub enum DapError {
SpawnFailed {
session_id: String,
reason: String,
},
Crashed {
session_id: String,
},
InvalidTransition {
from_state: String,
to_state: String,
},
RequestTimeout {
timeout_secs: u64,
},
NotRegistered(String),
Io(String),
Protocol(String),
}Expand description
Errors that can occur in Debug Adapter Protocol operations.
Variants§
SpawnFailed
Failed to spawn a debug adapter process.
Crashed
The debug adapter process exited unexpectedly.
InvalidTransition
An invalid state transition was attempted on the debug adapter.
RequestTimeout
A DAP request exceeded its timeout.
NotRegistered(String)
No debug adapter is registered for the given session.
Io(String)
An I/O error occurred during DAP communication.
Protocol(String)
A DAP protocol error (malformed messages, unexpected responses).
Trait Implementations§
Source§impl Error for DapError
impl Error for DapError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DapError
impl RefUnwindSafe for DapError
impl Send for DapError
impl Sync for DapError
impl Unpin for DapError
impl UnsafeUnpin for DapError
impl UnwindSafe for DapError
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