Struct ibc::ics07_tendermint::client_state::ClientState [−][src]
Fields
chain_id: ChainId
trust_level: TrustThreshold
trusting_period: Duration
unbonding_period: Duration
max_clock_drift: Duration
frozen_height: Height
latest_height: Height
upgrade_path: Vec<String>
allow_update_after_expiry: bool
allow_update_after_misbehaviour: bool
Implementations
impl ClientState
[src]
pub fn new(
chain_id: ChainId,
trust_level: TrustThreshold,
trusting_period: Duration,
unbonding_period: Duration,
max_clock_drift: Duration,
latest_height: Height,
frozen_height: Height,
upgrade_path: Vec<String>,
allow_update_after_expiry: bool,
allow_update_after_misbehaviour: bool
) -> Result<ClientState, Error>
[src]
chain_id: ChainId,
trust_level: TrustThreshold,
trusting_period: Duration,
unbonding_period: Duration,
max_clock_drift: Duration,
latest_height: Height,
frozen_height: Height,
upgrade_path: Vec<String>,
allow_update_after_expiry: bool,
allow_update_after_misbehaviour: bool
) -> Result<ClientState, Error>
pub fn latest_height(&self) -> Height
[src]
pub fn with_header(self, h: Header) -> Self
[src]
pub fn zero_custom_fields(client_state: Self) -> Self
[src]
Helper function to verify the upgrade client procedure. Resets all fields except the blockchain-specific ones.
Trait Implementations
impl ClientState for ClientState
[src]
fn chain_id(&self) -> ChainId
[src]
fn client_type(&self) -> ClientType
[src]
fn latest_height(&self) -> Height
[src]
fn is_frozen(&self) -> bool
[src]
fn wrap_any(self) -> AnyClientState
[src]
impl Clone for ClientState
[src]
fn clone(&self) -> ClientState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ClientState
[src]
impl Eq for ClientState
[src]
impl PartialEq<ClientState> for ClientState
[src]
fn eq(&self, other: &ClientState) -> bool
[src]
fn ne(&self, other: &ClientState) -> bool
[src]
impl Protobuf<ClientState> for ClientState
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), Error<Kind>> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), Error<Kind>> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, Error<Kind>> where
B: Buf,
[src]
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, Error<Kind>> where
B: Buf,
[src]
B: Buf,
pub fn encoded_len(&self) -> usize
[src]
pub fn encode_vec(&self) -> Result<Vec<u8, Global>, Error<Kind>>
[src]
pub fn decode_vec(v: &[u8]) -> Result<Self, Error<Kind>>
[src]
pub fn encode_length_delimited_vec(
&self
) -> Result<Vec<u8, Global>, Error<Kind>>
[src]
&self
) -> Result<Vec<u8, Global>, Error<Kind>>
pub fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error<Kind>>
[src]
impl Serialize for ClientState
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ClientState
[src]
impl StructuralPartialEq for ClientState
[src]
impl TryFrom<ClientState> for ClientState
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClientState
impl Send for ClientState
impl Sync for ClientState
impl Unpin for ClientState
impl UnwindSafe for ClientState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,