pub struct StreamMessage {
pub direction: StreamMessageDirection,
pub message: StreamMessageContent,
}
Expand description
A message that flows through the RPC stream.
This represents any JSON-RPC message (request, response, or notification) along with its direction (incoming or outgoing).
Stream messages are used for observing and debugging the protocol communication without interfering with the actual message handling.
Fields§
§direction: StreamMessageDirection
The direction of the message relative to this side of the connection.
message: StreamMessageContent
The actual content of the message.
Trait Implementations§
Source§impl Clone for StreamMessage
impl Clone for StreamMessage
Source§fn clone(&self) -> StreamMessage
fn clone(&self) -> StreamMessage
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 moreAuto Trait Implementations§
impl Freeze for StreamMessage
impl RefUnwindSafe for StreamMessage
impl Send for StreamMessage
impl Sync for StreamMessage
impl Unpin for StreamMessage
impl UnwindSafe for StreamMessage
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