pub enum LSPS1Message {
Request(RequestId, LSPS1Request),
Response(RequestId, LSPS1Response),
}
Expand description
An enum that captures all valid JSON-RPC messages in the LSPS1 protocol.
Variants§
Request(RequestId, LSPS1Request)
An LSPS1 JSON-RPC request.
Response(RequestId, LSPS1Response)
An LSPS1 JSON-RPC response.
Trait Implementations§
Source§impl Clone for LSPS1Message
impl Clone for LSPS1Message
Source§fn clone(&self) -> LSPS1Message
fn clone(&self) -> LSPS1Message
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LSPS1Message
impl Debug for LSPS1Message
Source§impl From<LSPS1Message> for LSPSMessage
impl From<LSPS1Message> for LSPSMessage
Source§fn from(message: LSPS1Message) -> Self
fn from(message: LSPS1Message) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LSPS1Message
impl PartialEq for LSPS1Message
Source§impl TryFrom<LSPSMessage> for LSPS1Message
impl TryFrom<LSPSMessage> for LSPS1Message
impl Eq for LSPS1Message
impl StructuralPartialEq for LSPS1Message
Auto Trait Implementations§
impl Freeze for LSPS1Message
impl RefUnwindSafe for LSPS1Message
impl Send for LSPS1Message
impl Sync for LSPS1Message
impl Unpin for LSPS1Message
impl UnwindSafe for LSPS1Message
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