pub struct UpgradeChain { /* private fields */ }
Expand description
Event type emitted by the host chain when an upgrade plan is executed.
Implementations§
Source§impl UpgradeChain
impl UpgradeChain
Trait Implementations§
Source§impl BorshDeserialize for UpgradeChain
impl BorshDeserialize for UpgradeChain
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 BorshSerialize for UpgradeChain
impl BorshSerialize for UpgradeChain
Source§impl Clone for UpgradeChain
impl Clone for UpgradeChain
Source§fn clone(&self) -> UpgradeChain
fn clone(&self) -> UpgradeChain
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 UpgradeChain
impl Debug for UpgradeChain
Source§impl Decode for UpgradeChain
impl Decode for UpgradeChain
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 UpgradeChain
impl<'de> Deserialize<'de> for UpgradeChain
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 UpgradeChain
impl Encode for UpgradeChain
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<UpgradeChain> for Event
impl From<UpgradeChain> for Event
Source§fn from(u: UpgradeChain) -> Self
fn from(u: UpgradeChain) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UpgradeChain
impl PartialEq for UpgradeChain
Source§impl Serialize for UpgradeChain
impl Serialize for UpgradeChain
Source§impl TypeInfo for UpgradeChain
impl TypeInfo for UpgradeChain
impl EncodeLike for UpgradeChain
impl Eq for UpgradeChain
impl StructuralPartialEq for UpgradeChain
Auto Trait Implementations§
impl Freeze for UpgradeChain
impl RefUnwindSafe for UpgradeChain
impl Send for UpgradeChain
impl Sync for UpgradeChain
impl Unpin for UpgradeChain
impl UnwindSafe for UpgradeChain
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