Struct ibc_testkit::fixtures::clients::tendermint::ClientStateConfig
source · pub struct ClientStateConfig {
pub trust_level: TrustThreshold,
pub trusting_period: Duration,
pub unbonding_period: Duration,
pub max_clock_drift: Duration,
pub proof_specs: ProofSpecs,
pub upgrade_path: Vec<String>,
/* private fields */
}Fields§
§trust_level: TrustThreshold§trusting_period: Duration§unbonding_period: Duration§max_clock_drift: Duration§proof_specs: ProofSpecs§upgrade_path: Vec<String>Implementations§
source§impl ClientStateConfig
impl ClientStateConfig
sourcepub fn builder() -> ClientStateConfigBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ClientStateConfigBuilder<((), (), (), (), (), (), ())>
Create a builder for building ClientStateConfig.
On the builder, call .trust_level(...)(optional), .trusting_period(...)(optional), .unbonding_period(...)(optional), .max_clock_drift(...)(optional), .proof_specs(...)(optional), .upgrade_path(...)(optional), .allow_update(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ClientStateConfig.
source§impl ClientStateConfig
impl ClientStateConfig
pub fn into_client_state( self, chain_id: ChainId, latest_height: Height ) -> Result<TmClientState, ClientError>
Trait Implementations§
source§impl Debug for ClientStateConfig
impl Debug for ClientStateConfig
Auto Trait Implementations§
impl Freeze for ClientStateConfig
impl RefUnwindSafe for ClientStateConfig
impl Send for ClientStateConfig
impl Sync for ClientStateConfig
impl Unpin for ClientStateConfig
impl UnwindSafe for ClientStateConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request