pub struct SuccessorMessage<M: JsonRpcMessage = UntypedMessage> {
pub message: M,
pub meta: Option<Value>,
}Expand description
A message being sent to the successor component.
Used in _proxy/successor when the proxy wants to forward a message downstream.
Fields§
§message: MThe message to be sent to the successor component.
meta: Option<Value>Optional metadata
Trait Implementations§
Source§impl<M: Clone + JsonRpcMessage> Clone for SuccessorMessage<M>
impl<M: Clone + JsonRpcMessage> Clone for SuccessorMessage<M>
Source§fn clone(&self) -> SuccessorMessage<M>
fn clone(&self) -> SuccessorMessage<M>
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<M: Debug + JsonRpcMessage> Debug for SuccessorMessage<M>
impl<M: Debug + JsonRpcMessage> Debug for SuccessorMessage<M>
Source§impl<'de, M> Deserialize<'de> for SuccessorMessage<M>where
M: Deserialize<'de> + JsonRpcMessage,
impl<'de, M> Deserialize<'de> for SuccessorMessage<M>where
M: Deserialize<'de> + JsonRpcMessage,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<M: JsonRpcMessage> JsonRpcMessage for SuccessorMessage<M>
impl<M: JsonRpcMessage> JsonRpcMessage for SuccessorMessage<M>
Source§fn matches_method(method: &str) -> bool
fn matches_method(method: &str) -> bool
Check if this message type matches the given method name.
Source§fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
Convert this message into an untyped message.
Source§impl<Req: JsonRpcRequest> JsonRpcRequest for SuccessorMessage<Req>
impl<Req: JsonRpcRequest> JsonRpcRequest for SuccessorMessage<Req>
Source§type Response = <Req as JsonRpcRequest>::Response
type Response = <Req as JsonRpcRequest>::Response
The type of data expected in response.
Source§impl<M> Serialize for SuccessorMessage<M>where
M: Serialize + JsonRpcMessage,
impl<M> Serialize for SuccessorMessage<M>where
M: Serialize + JsonRpcMessage,
impl<Notif: JsonRpcNotification> JsonRpcNotification for SuccessorMessage<Notif>
Auto Trait Implementations§
impl<M> Freeze for SuccessorMessage<M>where
M: Freeze,
impl<M> RefUnwindSafe for SuccessorMessage<M>where
M: RefUnwindSafe,
impl<M> Send for SuccessorMessage<M>
impl<M> Sync for SuccessorMessage<M>where
M: Sync,
impl<M> Unpin for SuccessorMessage<M>where
M: Unpin,
impl<M> UnsafeUnpin for SuccessorMessage<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for SuccessorMessage<M>where
M: UnwindSafe,
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