pub struct LightClientOpts { /* private fields */ }
Implementations§
Source§impl LightClientOpts
impl LightClientOpts
pub fn new( chain_id: String, trusted_height: Height, trusted_hash: Hash, trust_threshold: TrustThreshold, trusting_period: u64, max_clock_drift: u64, max_block_lag: u64, ) -> Result<Self, StdError>
pub fn chain_id(&self) -> &String
pub fn trusted_height(&self) -> Height
pub fn trusted_hash(&self) -> &Hash
pub fn trust_threshold(&self) -> &TrustThreshold
pub fn trusting_period(&self) -> u64
pub fn max_clock_drift(&self) -> u64
pub fn max_block_lag(&self) -> u64
Trait Implementations§
Source§impl Clone for LightClientOpts
impl Clone for LightClientOpts
Source§fn clone(&self) -> LightClientOpts
fn clone(&self) -> LightClientOpts
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LightClientOpts
impl Debug for LightClientOpts
Source§impl From<LightClientOpts> for RawLightClientOpts
impl From<LightClientOpts> for RawLightClientOpts
Source§fn from(value: LightClientOpts) -> Self
fn from(value: LightClientOpts) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LightClientOpts
impl PartialEq for LightClientOpts
Source§impl TryFrom<RawLightClientOpts> for LightClientOpts
impl TryFrom<RawLightClientOpts> for LightClientOpts
impl StructuralPartialEq for LightClientOpts
Auto Trait Implementations§
impl Freeze for LightClientOpts
impl RefUnwindSafe for LightClientOpts
impl Send for LightClientOpts
impl Sync for LightClientOpts
impl Unpin for LightClientOpts
impl UnwindSafe for LightClientOpts
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more