#[non_exhaustive]pub enum ForkActivation {
BlockOnly {
activation_block: BlockNumber,
},
BlockAndTimestamp {
activation_block: BlockNumber,
activation_timestamp: UnixTimestamp,
},
}Expand description
Unambiguous fork activation rule.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BlockOnly
Block number alone determines activation.
Fields
§
activation_block: BlockNumberActivation block for this fork view.
BlockAndTimestamp
Both block number and timestamp must be satisfied.
Fields
§
activation_block: BlockNumberActivation block for this fork view.
§
activation_timestamp: UnixTimestampActivation timestamp for timestamp-based forks.
Trait Implementations§
Source§impl Clone for ForkActivation
impl Clone for ForkActivation
Source§fn clone(&self) -> ForkActivation
fn clone(&self) -> ForkActivation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ForkActivation
Source§impl Debug for ForkActivation
impl Debug for ForkActivation
impl Eq for ForkActivation
Source§impl PartialEq for ForkActivation
impl PartialEq for ForkActivation
Source§fn eq(&self, other: &ForkActivation) -> bool
fn eq(&self, other: &ForkActivation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ForkActivation
Auto Trait Implementations§
impl Freeze for ForkActivation
impl RefUnwindSafe for ForkActivation
impl Send for ForkActivation
impl Sync for ForkActivation
impl Unpin for ForkActivation
impl UnsafeUnpin for ForkActivation
impl UnwindSafe for ForkActivation
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