Struct tendermint_light_client_verifier::options::Options
source · pub struct Options {
pub trust_threshold: TrustThreshold,
pub trusting_period: Duration,
pub clock_drift: Duration,
}
Expand description
Verification parameters
Fields§
§trust_threshold: TrustThreshold
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<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
source§impl PartialEq for Options
impl PartialEq for Options
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