reth_primitives_traits::serde_bincode_compat

Trait SerdeBincodeCompat

Source
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§

Source

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.

Implementors§