[−][src]Enum plasma_cash_tokens::TxnCmp
Different types of comparisions of Plasma Transactions.
Plasma Transactions form a DAG where only one pathway back to the origin is considered valid. However, there may be multiple pathways, so it is important to allow this behavior to be compared in order to understand which transaction is legitimate.
Note
This comparision is used in the history verification logic, as well as withdrawal challenge detection logic. Different clients may have a privledged view of this ordering, since transactions may be encrypted in some context and unencrypted in others, which means relationships may differ depending on information privledge of the client.
Variants
LHS & RHS are the same exact transaction
LHS is the parent of RHS
RHS is the parent of LHS
LHS & RHS have same parent, but LHS is earlier
LHS & RHS have same parent, but RHS is earlier
LHS & RHS are the same txn to two different receivers
LHS & RHS have no relationship to each other
Trait Implementations
Auto Trait Implementations
impl Send for TxnCmp
impl Sync for TxnCmp
impl Unpin for TxnCmp
impl RefUnwindSafe for TxnCmp
impl UnwindSafe for TxnCmp
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,