pub enum MessageFrame {
Text(String),
Value(Value),
}Expand description
One complete JSON-RPC message exchanged by a protocol transport.
Variants§
Trait Implementations§
Source§impl Clone for MessageFrame
impl Clone for MessageFrame
Source§fn clone(&self) -> MessageFrame
fn clone(&self) -> MessageFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageFrame
impl Debug for MessageFrame
Source§impl PartialEq for MessageFrame
impl PartialEq for MessageFrame
Source§fn eq(&self, other: &MessageFrame) -> bool
fn eq(&self, other: &MessageFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageFrame
Auto Trait Implementations§
impl Freeze for MessageFrame
impl RefUnwindSafe for MessageFrame
impl Send for MessageFrame
impl Sync for MessageFrame
impl Unpin for MessageFrame
impl UnsafeUnpin for MessageFrame
impl UnwindSafe for MessageFrame
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