#[repr(u8)]pub enum ConflictReason {
None = 0,
InputUtxoAlreadySpent = 1,
InputUtxoAlreadySpentInThisMilestone = 2,
InputUtxoNotFound = 3,
InputOutputSumMismatch = 4,
InvalidSignature = 5,
InvalidDustAllowance = 6,
SemanticValidationFailed = 255,
}Expand description
Represents the different reasons why a transaction can conflict with the ledger state.
Variants§
None = 0
The message has no conflict.
InputUtxoAlreadySpent = 1
The referenced Utxo was already spent.
InputUtxoAlreadySpentInThisMilestone = 2
The referenced Utxo was already spent while confirming this milestone.
InputUtxoNotFound = 3
The referenced Utxo cannot be found.
InputOutputSumMismatch = 4
The sum of the inputs and output values does not match.
InvalidSignature = 5
The unlock block signature is invalid.
InvalidDustAllowance = 6
The dust allowance for the address is invalid.
SemanticValidationFailed = 255
The semantic validation failed for a reason not covered by the previous variants.
Trait Implementations§
Source§impl Clone for ConflictReason
impl Clone for ConflictReason
Source§fn clone(&self) -> ConflictReason
fn clone(&self) -> ConflictReason
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 ConflictReason
impl Debug for ConflictReason
Source§impl Default for ConflictReason
impl Default for ConflictReason
Source§impl<'de> Deserialize<'de> for ConflictReason
impl<'de> Deserialize<'de> for ConflictReason
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 Packable for ConflictReason
impl Packable for ConflictReason
Source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
Source§fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
Packs the instance to bytes and writes them to the passed writer.
Source§fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R,
) -> Result<Self, Self::Error>where
Self: Sized,
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R,
) -> Result<Self, Self::Error>where
Self: Sized,
Reads bytes from the passed reader and unpacks them into an instance.
Source§fn pack_new(&self) -> Vec<u8> ⓘ
fn pack_new(&self) -> Vec<u8> ⓘ
Packs the instance to bytes and writes them to a newly allocated vector.
Source§impl PartialEq for ConflictReason
impl PartialEq for ConflictReason
Source§impl Serialize for ConflictReason
impl Serialize for ConflictReason
Source§impl TryFrom<u8> for ConflictReason
impl TryFrom<u8> for ConflictReason
impl Copy for ConflictReason
impl Eq for ConflictReason
impl StructuralPartialEq for ConflictReason
Auto Trait Implementations§
impl Freeze for ConflictReason
impl RefUnwindSafe for ConflictReason
impl Send for ConflictReason
impl Sync for ConflictReason
impl Unpin for ConflictReason
impl UnwindSafe for ConflictReason
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