pub trait ClientState<V, E>:
Send
+ Sync
+ ClientStateCommon
+ ClientStateValidation<V>
+ ClientStateExecution<E>where
V: ClientValidationContext,
E: ClientExecutionContext,{ }
Expand description
Primary client trait. Defines all the methods that clients must implement.
ClientState
is broken up into 3 separate traits to avoid needing to use
fully qualified syntax for every method call (see ADR 7 for more details).
One only needs to implement ClientStateCommon
, ClientStateValidation
and ClientStateExecution
; a blanket implementation will automatically
implement ClientState
.
Refer to ClientStateValidation
and ClientStateExecution
to learn
more about what both generic parameters represent.
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.