pub enum OpOrd {
Genesis,
Transition {
witness: WitnessOrd,
ty: TransitionType,
nonce: u64,
opid: OpId,
},
}
Expand description
Operation ordering priority for contract state computation according to RCP-240731A.
The ordering is the following:
- Genesis is processed first.
- Other operations are ordered according to their witness transactions (see
WitnessOrd
for the details). - If two or more operations share the same witness transaction ordering, they are first ordered
basing on their
nonce
value, and if it is also the same, basing on their operation id value.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpOrd
impl<'de> Deserialize<'de> for OpOrd
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 Ord for OpOrd
impl Ord for OpOrd
Source§impl PartialOrd for OpOrd
impl PartialOrd for OpOrd
Source§impl StrictDecode for OpOrd
impl StrictDecode for OpOrd
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for OpOrd
impl StrictDumb for OpOrd
fn strict_dumb() -> Self
Source§impl StrictEncode for OpOrd
impl StrictEncode for OpOrd
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictSum for OpOrd
impl StrictSum for OpOrd
const ALL_VARIANTS: &'static [(u8, &'static str)]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<VariantName>
fn variant_ord(&self) -> u8
Source§impl StrictType for OpOrd
impl StrictType for OpOrd
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_LOGIC
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for OpOrd
impl StrictUnion for OpOrd
fn strict_type_info() -> TypeInfo<Self>
impl Copy for OpOrd
impl Eq for OpOrd
impl StructuralPartialEq for OpOrd
Auto Trait Implementations§
impl Freeze for OpOrd
impl RefUnwindSafe for OpOrd
impl Send for OpOrd
impl Sync for OpOrd
impl Unpin for OpOrd
impl UnwindSafe for OpOrd
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.