pub trait RpcDebuggerReader: RpcMethod {
// Required methods
fn debugger_query<R>(
r: &mut R,
) -> Result<Self::Query, RpcDebuggerReaderError>
where R: Read;
fn debugger_response<R>(
r: &mut R,
) -> Result<Result<Self::Response, Error>, RpcDebuggerReaderError>
where R: Read;
}
Expand description
Trait for reading RPC query and response in the format provided by the debugger.
This is a helper trait that makes it easier to decode data obtain from the Mina Network Debugger, that stores DebuggerResponse that has tag and version encoded, instead of Response. It simply decodes data wrapped in auxiliary types and returns unwrapped data.
Required Methods§
fn debugger_query<R>(r: &mut R) -> Result<Self::Query, RpcDebuggerReaderError>where
R: Read,
fn debugger_response<R>(
r: &mut R,
) -> Result<Result<Self::Response, Error>, RpcDebuggerReaderError>where
R: Read,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.