pub trait DebugNode<N: FullNodeComponents>: Node<N> {
type RpcBlock: Serialize + DeserializeOwned + 'static;
// Required method
fn rpc_to_primitive_block(rpc_block: Self::RpcBlock) -> BlockTy<Self>;
}
Expand description
Node
extension with support for debugging utilities, see DebugNodeLauncher
for more
context.
Required Associated Types§
Sourcetype RpcBlock: Serialize + DeserializeOwned + 'static
type RpcBlock: Serialize + DeserializeOwned + 'static
RPC block type. Used by [DebugConsensusClient
] to fetch blocks and submit them to the
engine.
Required Methods§
Sourcefn rpc_to_primitive_block(rpc_block: Self::RpcBlock) -> BlockTy<Self>
fn rpc_to_primitive_block(rpc_block: Self::RpcBlock) -> BlockTy<Self>
Converts an RPC block to a primitive block.
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.