Enum jsonrpsee_core::client::ReceivedMessage
source · pub enum ReceivedMessage {
Text(String),
Bytes(Vec<u8>),
Pong,
}
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ReceivedMessage
impl Send for ReceivedMessage
impl Sync for ReceivedMessage
impl Unpin for ReceivedMessage
impl UnwindSafe for ReceivedMessage
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