DapMessage

Type Alias DapMessage 

Source
pub type DapMessage = Message;
Expand description

The common message type for the DAP protocol.

Aliased Type§

pub enum DapMessage {
    Request(Request),
    Response(Response),
    Event(Event),
    ResponseWithCommand(ResponseWithCommand),
}

Variants§

§

Request(Request)

Request messages

§

Response(Response)

Response messages

§

Event(Event)

Event messages

§

ResponseWithCommand(ResponseWithCommand)

Response messages with the corresponding request command.

dapts::Response currently does not carry DAP’s required command field. Keep the raw response type for reads, but use this variant when writing server responses so clients like nvim-dap can route callbacks.

Trait Implementations§

Source§

impl GetMessageKind for DapMessage

Available on crate feature dap only.
Source§

const MESSAGE_KIND: MessageKind = MessageKind::Dap

Returns the kind of the message.