Struct sov_chain_state::TransitionInProgress
source · pub struct TransitionInProgress<Da: DaSpec> { /* private fields */ }
Expand description
Represents a transition in progress for the rollup.
Implementations§
source§impl<Da: DaSpec> TransitionInProgress<Da>
impl<Da: DaSpec> TransitionInProgress<Da>
sourcepub fn new(
da_block_hash: Da::SlotHash,
validity_condition: Da::ValidityCondition
) -> Self
pub fn new( da_block_hash: Da::SlotHash, validity_condition: Da::ValidityCondition ) -> Self
Creates a new transition in progress
Trait Implementations§
source§impl<Da: DaSpec> BorshDeserialize for TransitionInProgress<Da>where
Da::SlotHash: BorshDeserialize,
Da::ValidityCondition: BorshDeserialize,
impl<Da: DaSpec> BorshDeserialize for TransitionInProgress<Da>where Da::SlotHash: BorshDeserialize, Da::ValidityCondition: BorshDeserialize,
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<Da: DaSpec> BorshSerialize for TransitionInProgress<Da>where
Da::SlotHash: BorshSerialize,
Da::ValidityCondition: BorshSerialize,
impl<Da: DaSpec> BorshSerialize for TransitionInProgress<Da>where Da::SlotHash: BorshSerialize, Da::ValidityCondition: BorshSerialize,
source§impl<Da: Clone + DaSpec> Clone for TransitionInProgress<Da>where
Da::SlotHash: Clone,
Da::ValidityCondition: Clone,
impl<Da: Clone + DaSpec> Clone for TransitionInProgress<Da>where Da::SlotHash: Clone, Da::ValidityCondition: Clone,
source§fn clone(&self) -> TransitionInProgress<Da>
fn clone(&self) -> TransitionInProgress<Da>
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<Da: Debug + DaSpec> Debug for TransitionInProgress<Da>where
Da::SlotHash: Debug,
Da::ValidityCondition: Debug,
impl<Da: Debug + DaSpec> Debug for TransitionInProgress<Da>where Da::SlotHash: Debug, Da::ValidityCondition: Debug,
source§impl<'de, Da: DaSpec> Deserialize<'de> for TransitionInProgress<Da>where
Da::SlotHash: Deserialize<'de>,
Da::ValidityCondition: Deserialize<'de>,
impl<'de, Da: DaSpec> Deserialize<'de> for TransitionInProgress<Da>where Da::SlotHash: Deserialize<'de>, Da::ValidityCondition: Deserialize<'de>,
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<Da: PartialEq + DaSpec> PartialEq<TransitionInProgress<Da>> for TransitionInProgress<Da>where
Da::SlotHash: PartialEq,
Da::ValidityCondition: PartialEq,
impl<Da: PartialEq + DaSpec> PartialEq<TransitionInProgress<Da>> for TransitionInProgress<Da>where Da::SlotHash: PartialEq, Da::ValidityCondition: PartialEq,
source§fn eq(&self, other: &TransitionInProgress<Da>) -> bool
fn eq(&self, other: &TransitionInProgress<Da>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Da: DaSpec> Serialize for TransitionInProgress<Da>where
Da::SlotHash: Serialize,
Da::ValidityCondition: Serialize,
impl<Da: DaSpec> Serialize for TransitionInProgress<Da>where Da::SlotHash: Serialize, Da::ValidityCondition: Serialize,
impl<Da: Eq + DaSpec> Eq for TransitionInProgress<Da>where Da::SlotHash: Eq, Da::ValidityCondition: Eq,
impl<Da: DaSpec> StructuralEq for TransitionInProgress<Da>
impl<Da: DaSpec> StructuralPartialEq for TransitionInProgress<Da>
Auto Trait Implementations§
impl<Da> RefUnwindSafe for TransitionInProgress<Da>where <Da as DaSpec>::SlotHash: RefUnwindSafe, <Da as DaSpec>::ValidityCondition: RefUnwindSafe,
impl<Da> Send for TransitionInProgress<Da>
impl<Da> Sync for TransitionInProgress<Da>
impl<Da> Unpin for TransitionInProgress<Da>where <Da as DaSpec>::SlotHash: Unpin, <Da as DaSpec>::ValidityCondition: Unpin,
impl<Da> UnwindSafe for TransitionInProgress<Da>where <Da as DaSpec>::SlotHash: UnwindSafe, <Da as DaSpec>::ValidityCondition: UnwindSafe,
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