pub trait ClientType<'a>: Sizedwhere
<Self::ClientState as TryFrom<Any>>::Error: Display,
<Self::ConsensusState as TryFrom<Any>>::Error: Display,{
type ClientState: ClientStateExecution<Context<'a, Self>>;
type ConsensusState: ConsensusStateTrait;
}
Expand description
Enables users to integrate their implemented light client by introducing
their client state and consensus state types into the generic Context
object.
Required Associated Types§
type ClientState: ClientStateExecution<Context<'a, Self>>
type ConsensusState: ConsensusStateTrait
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.