pub enum LSPSMessage {
Invalid(ResponseError),
LSPS0(LSPS0Message),
LSPS1(LSPS1Message),
LSPS2(LSPS2Message),
}
Expand description
A (de-)serializable LSPS message allowing to be sent over the wire.
Variants§
Invalid(ResponseError)
An invalid variant.
LSPS0(LSPS0Message)
An LSPS0 message.
LSPS1(LSPS1Message)
An LSPS1 message.
LSPS2(LSPS2Message)
An LSPS2 message.
Trait Implementations§
Source§impl Clone for LSPSMessage
impl Clone for LSPSMessage
Source§fn clone(&self) -> LSPSMessage
fn clone(&self) -> LSPSMessage
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 LSPSMessage
impl Debug for LSPSMessage
Source§impl From<LSPS0Message> for LSPSMessage
impl From<LSPS0Message> for LSPSMessage
Source§fn from(message: LSPS0Message) -> Self
fn from(message: LSPS0Message) -> Self
Converts to this type from the input type.
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 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 LSPSMessage
impl PartialEq for LSPSMessage
Source§impl Serialize for LSPSMessage
impl Serialize for LSPSMessage
Source§impl TryFrom<LSPSMessage> for LSPS0Message
impl TryFrom<LSPSMessage> for LSPS0Message
Source§impl TryFrom<LSPSMessage> for LSPS1Message
impl TryFrom<LSPSMessage> for LSPS1Message
Source§impl TryFrom<LSPSMessage> for LSPS2Message
impl TryFrom<LSPSMessage> for LSPS2Message
impl Eq for LSPSMessage
impl StructuralPartialEq for LSPSMessage
Auto Trait Implementations§
impl Freeze for LSPSMessage
impl RefUnwindSafe for LSPSMessage
impl Send for LSPSMessage
impl Sync for LSPSMessage
impl Unpin for LSPSMessage
impl UnwindSafe for LSPSMessage
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