pub trait DebugNode<N>: Node<N>where
N: FullNodeComponents,{
type RpcBlock: Serialize + DeserializeOwned + 'static;
// Required method
fn rpc_to_primitive_block(
rpc_block: Self::RpcBlock,
) -> <Self::Primitives as NodePrimitives>::Block;
}
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,
) -> <Self::Primitives as NodePrimitives>::Block
fn rpc_to_primitive_block( rpc_block: Self::RpcBlock, ) -> <Self::Primitives as NodePrimitives>::Block
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.