Struct Request
pub struct Request {
pub seq: i64,
pub command: String,
pub arguments: Value,
}
Expand description
Represents a request from the client.
Fields§
§seq: i64
Sequence number for the Request.
From the specification:
Sequence number of the message (also known as message ID). The seq
for
the first message sent by a client or debug adapter is 1, and for each
subsequent message is 1 greater than the previous message sent by that
actor. seq
can be used to order requests, responses, and events, and
to associate requests with their corresponding responses. For
protocol messages of type request
the sequence number can be used
to cancel the request.
command: String
The command to execute.
arguments: Value
The command to execute.
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Request
impl Serialize for Request
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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