pub struct UpgradeClient { /* private fields */ }
Expand description
Signals a recent upgrade of an on-chain client (IBC Client).
Implementations§
Source§impl UpgradeClient
impl UpgradeClient
pub fn new( client_id: ClientId, client_type: ClientType, consensus_height: Height, ) -> UpgradeClient
pub fn client_id(&self) -> &ClientId
pub fn client_type(&self) -> &ClientType
pub fn consensus_height(&self) -> &Height
pub fn event_type(&self) -> &str
Trait Implementations§
Source§impl BorshDeserialize for UpgradeClient
impl BorshDeserialize for UpgradeClient
fn deserialize_reader<__R>(reader: &mut __R) -> Result<UpgradeClient, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for UpgradeClient
impl BorshSerialize for UpgradeClient
Source§impl Clone for UpgradeClient
impl Clone for UpgradeClient
Source§fn clone(&self) -> UpgradeClient
fn clone(&self) -> UpgradeClient
Returns a duplicate 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 UpgradeClient
impl Debug for UpgradeClient
Source§impl Decode for UpgradeClient
impl Decode for UpgradeClient
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<UpgradeClient, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<UpgradeClient, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl<'de> Deserialize<'de> for UpgradeClient
impl<'de> Deserialize<'de> for UpgradeClient
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpgradeClient, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpgradeClient, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for UpgradeClient
impl Encode for UpgradeClient
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<UpgradeClient> for Event
impl From<UpgradeClient> for Event
Source§fn from(u: UpgradeClient) -> Event
fn from(u: UpgradeClient) -> Event
Converts to this type from the input type.
Source§impl PartialEq for UpgradeClient
impl PartialEq for UpgradeClient
Source§impl Serialize for UpgradeClient
impl Serialize for UpgradeClient
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
Source§impl TypeInfo for UpgradeClient
impl TypeInfo for UpgradeClient
impl EncodeLike for UpgradeClient
impl Eq for UpgradeClient
impl StructuralPartialEq for UpgradeClient
Auto Trait Implementations§
impl Freeze for UpgradeClient
impl RefUnwindSafe for UpgradeClient
impl Send for UpgradeClient
impl Sync for UpgradeClient
impl Unpin for UpgradeClient
impl UnwindSafe for UpgradeClient
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