Struct tendermint_light_client::light_client::Options
source · pub struct Options {
pub trust_threshold: TrustThresholdFraction,
pub trusting_period: Duration,
pub clock_drift: Duration,
}
Expand description
Verification parameters
Fields§
§trust_threshold: TrustThresholdFraction
Defines 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: Duration
How long a validator set is trusted for (must be shorter than the chain’s unbonding period)
clock_drift: Duration
Correction 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§
source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Options, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Options, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Options
impl PartialEq for Options
source§impl Serialize for Options
impl Serialize for Options
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.