Struct tendermint_light_client::light_client::Options [−][src]
pub struct Options {
pub trust_threshold: TrustThreshold,
pub trusting_period: Duration,
pub clock_drift: Duration,
}Expand description
Verification parameters
Fields
trust_threshold: TrustThresholdDefines what fraction of the total voting power of a known and trusted validator set is sufficient for a commit to be accepted going forward.
trusting_period: DurationHow long a validator set is trusted for (must be shorter than the chain’s unbonding period)
clock_drift: DurationCorrection parameter dealing with only approximately synchronized clocks. The local clock should always be ahead of timestamps from the blockchain; this is the maximum amount that the local clock may drift behind a timestamp from the blockchain.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Optionsimpl UnwindSafe for OptionsBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V