Enum rings_rpc::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.
Auto Trait Implementations§
impl RefUnwindSafe for RpcMessage
impl Send for RpcMessage
impl Sync for RpcMessage
impl Unpin for RpcMessage
impl UnwindSafe for RpcMessage
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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