Enum jsonrpsee_core::client::ReceivedMessage
source · Expand description
Message type received from the RPC server.
It can either be plain text data, bytes, or Pong
messages.
Variants§
Text(String)
Incoming packet contains plain String
data.
Bytes(Vec<u8>)
Incoming packet contains bytes.
Pong
Incoming Pong
frame as a reply to a previously submitted Ping
frame.
Trait Implementations§
source§impl Clone for ReceivedMessage
impl Clone for ReceivedMessage
source§fn clone(&self) -> ReceivedMessage
fn clone(&self) -> ReceivedMessage
Returns a copy 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 more