pub enum UpdateKind {
UpdateClient,
SubmitMisbehaviour,
}
Expand description
UpdateKind
represents the 2 ways that a client can be updated
in IBC: either through a MsgUpdateClient
, or a MsgSubmitMisbehaviour
.
Variants§
UpdateClient
this is the typical scenario where a new header is submitted to the client to update the client. Note that light clients are free to define the type of the object used to update them (e.g. could be a list of headers).
SubmitMisbehaviour
this is the scenario where misbehaviour is submitted to the client (e.g 2 headers with the same height in Tendermint)
Trait Implementations§
source§impl Clone for UpdateKind
impl Clone for UpdateKind
source§fn clone(&self) -> UpdateKind
fn clone(&self) -> UpdateKind
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 UpdateKind
impl Debug for UpdateKind
source§impl PartialEq for UpdateKind
impl PartialEq for UpdateKind
source§fn eq(&self, other: &UpdateKind) -> bool
fn eq(&self, other: &UpdateKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UpdateKind
impl StructuralPartialEq for UpdateKind
Auto Trait Implementations§
impl Freeze for UpdateKind
impl RefUnwindSafe for UpdateKind
impl Send for UpdateKind
impl Sync for UpdateKind
impl Unpin for UpdateKind
impl UnwindSafe for UpdateKind
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