pub struct UpgradeClientProposal { /* private fields */ }
Expand description
Event type emitted by the host chain when an upgrade plan is proposed.
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for UpgradeClientProposal
impl BorshDeserialize for UpgradeClientProposal
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
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 Clone for UpgradeClientProposal
impl Clone for UpgradeClientProposal
Source§fn clone(&self) -> UpgradeClientProposal
fn clone(&self) -> UpgradeClientProposal
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 UpgradeClientProposal
impl Debug for UpgradeClientProposal
Source§impl Decode for UpgradeClientProposal
impl Decode for UpgradeClientProposal
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
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 UpgradeClientProposal
impl<'de> Deserialize<'de> for UpgradeClientProposal
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 Encode for UpgradeClientProposal
impl Encode for UpgradeClientProposal
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: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &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<UpgradeClientProposal> for Event
impl From<UpgradeClientProposal> for Event
Source§fn from(u: UpgradeClientProposal) -> Self
fn from(u: UpgradeClientProposal) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UpgradeClientProposal
impl PartialEq for UpgradeClientProposal
Source§impl Serialize for UpgradeClientProposal
impl Serialize for UpgradeClientProposal
Source§impl TypeInfo for UpgradeClientProposal
impl TypeInfo for UpgradeClientProposal
impl EncodeLike for UpgradeClientProposal
impl Eq for UpgradeClientProposal
impl StructuralPartialEq for UpgradeClientProposal
Auto Trait Implementations§
impl Freeze for UpgradeClientProposal
impl RefUnwindSafe for UpgradeClientProposal
impl Send for UpgradeClientProposal
impl Sync for UpgradeClientProposal
impl Unpin for UpgradeClientProposal
impl UnwindSafe for UpgradeClientProposal
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