pub enum LSPS2Message {
Request(RequestId, LSPS2Request),
Response(RequestId, LSPS2Response),
}
Expand description
An enum that captures all valid JSON-RPC messages in the LSPS2 protocol.
Variants§
Request(RequestId, LSPS2Request)
An LSPS2 JSON-RPC request.
Response(RequestId, LSPS2Response)
An LSPS2 JSON-RPC response.
Trait Implementations§
Source§impl Clone for LSPS2Message
impl Clone for LSPS2Message
Source§fn clone(&self) -> LSPS2Message
fn clone(&self) -> LSPS2Message
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 LSPS2Message
impl Debug for LSPS2Message
Source§impl From<LSPS2Message> for LSPSMessage
impl From<LSPS2Message> for LSPSMessage
Source§fn from(message: LSPS2Message) -> Self
fn from(message: LSPS2Message) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LSPS2Message
impl PartialEq for LSPS2Message
Source§impl TryFrom<LSPSMessage> for LSPS2Message
impl TryFrom<LSPSMessage> for LSPS2Message
impl Eq for LSPS2Message
impl StructuralPartialEq for LSPS2Message
Auto Trait Implementations§
impl Freeze for LSPS2Message
impl RefUnwindSafe for LSPS2Message
impl Send for LSPS2Message
impl Sync for LSPS2Message
impl Unpin for LSPS2Message
impl UnwindSafe for LSPS2Message
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