reth_node_core::primitives::serde_bincode_compat

Trait SerdeBincodeCompat

pub trait SerdeBincodeCompat: Sized + 'static {
    type BincodeRepr<'a>: Debug + Serialize + DeserializeOwned + From<&'a Self> + Into<Self>;
}
Available on crate feature serde-bincode-compat only.
Expand description

Trait for types that can be serialized and deserialized using bincode.

Required Associated Types§

type BincodeRepr<'a>: Debug + Serialize + DeserializeOwned + From<&'a Self> + Into<Self>

Serde representation of the type for bincode serialization.

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.

Implementations on Foreign Types§

§

impl SerdeBincodeCompat for TransactionSigned

§

type BincodeRepr<'a> = TransactionSigned<'a>

§

impl<T> SerdeBincodeCompat for BlockBody<T>

§

type BincodeRepr<'a> = BlockBody<'a, T>

Implementors§

§

impl SerdeBincodeCompat for Header

§

type BincodeRepr<'a> = Header<'a>

§

impl<H> SerdeBincodeCompat for SealedHeader<H>

§

type BincodeRepr<'a> = SealedHeader<'a, H>