Trait SerdeBincodeCompat

pub trait SerdeBincodeCompat: Sized + 'static {
    type BincodeRepr<'a>: Debug + Serialize + DeserializeOwned + From<&'a Self> + Into<Self>;
}
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 BlockBody

§

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

Implementors§

§

impl SerdeBincodeCompat for Header

§

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

§

impl<H> SerdeBincodeCompat for SealedHeader<H>

§

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