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.
Object Safety§
This trait is not object safe.