Enum rings_node::jsonrpc_client::client::RpcMessage
source · pub enum RpcMessage {
Call(CallMessage),
Notify(NotifyMessage),
Subscribe(SubscribeMessage),
}Expand description
A message sent to the RpcClient.
Variants§
Call(CallMessage)
Make an RPC call.
Notify(NotifyMessage)
Send a notification.
Subscribe(SubscribeMessage)
Subscribe to a notification.
Trait Implementations§
source§impl From<CallMessage> for RpcMessage
impl From<CallMessage> for RpcMessage
source§fn from(msg: CallMessage) -> Self
fn from(msg: CallMessage) -> Self
Converts to this type from the input type.
source§impl From<NotifyMessage> for RpcMessage
impl From<NotifyMessage> for RpcMessage
source§fn from(msg: NotifyMessage) -> Self
fn from(msg: NotifyMessage) -> Self
Converts to this type from the input type.
source§impl From<SubscribeMessage> for RpcMessage
impl From<SubscribeMessage> for RpcMessage
source§fn from(msg: SubscribeMessage) -> Self
fn from(msg: SubscribeMessage) -> Self
Converts to this type from the input type.