pub enum DapMessage {
Request {
seq: i64,
command: String,
arguments: Option<Value>,
},
Response {
seq: i64,
request_seq: i64,
success: bool,
command: String,
body: Option<Value>,
message: Option<String>,
},
Event {
seq: i64,
event: String,
body: Option<Value>,
},
}Expand description
Represents a DAP message, which can be a request, response, or event.
Variants§
Request
A request from the client to the debug adapter.
Fields
Response
A response from the debug adapter to a client request.
Fields
Event
An event from the debug adapter to the client.
Trait Implementations§
Source§impl Debug for DapMessage
impl Debug for DapMessage
Source§impl<'de> Deserialize<'de> for DapMessage
impl<'de> Deserialize<'de> for DapMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DapMessage
impl RefUnwindSafe for DapMessage
impl Send for DapMessage
impl Sync for DapMessage
impl Unpin for DapMessage
impl UnsafeUnpin for DapMessage
impl UnwindSafe for DapMessage
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