Enum bee_tangle::ConflictReason [−][src]
#[repr(u8)]
pub enum ConflictReason {
None,
InputUtxoAlreadySpent,
InputUtxoAlreadySpentInThisMilestone,
InputUtxoNotFound,
InputOutputSumMismatch,
InvalidSignature,
InvalidDustAllowance,
SemanticValidationFailed,
}Expand description
Represents the different reasons why a transaction can conflict with the ledger state.
Variants
Expand description
The message has no conflict.
Expand description
The referenced Utxo was already spent.
Expand description
The referenced Utxo was already spent while confirming this milestone.
Expand description
The referenced Utxo cannot be found.
Expand description
The sum of the inputs and output values does not match.
Expand description
The unlock block signature is invalid.
Expand description
The dust allowance for the address is invalid.
Expand description
The semantic validation failed for a reason not covered by the previous variants.
Trait Implementations
impl Clone for ConflictReason[src]
impl Clone for ConflictReason[src]fn clone(&self) -> ConflictReason[src]
fn clone(&self) -> ConflictReason[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for ConflictReason[src]
impl Debug for ConflictReason[src]impl Default for ConflictReason[src]
impl Default for ConflictReason[src]impl<'de> Deserialize<'de> for ConflictReason[src]
impl<'de> Deserialize<'de> for ConflictReason[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl Packable for ConflictReason[src]
impl Packable for ConflictReason[src]type Error = ConflictError
type Error = ConflictErrorAssociated error type.
fn packed_len(&self) -> usize[src]
fn packed_len(&self) -> usize[src]Returns the length of the packed bytes.
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>[src]Packs the instance to bytes and writes them to the passed writer.
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error> where
Self: Sized, [src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error> where
Self: Sized, [src]Reads bytes from the passed reader and unpacks them into an instance.
fn pack_new(&self) -> Vec<u8, Global>[src]
fn pack_new(&self) -> Vec<u8, Global>[src]Packs the instance to bytes and writes them to a newly allocated vector.
impl PartialEq<ConflictReason> for ConflictReason[src]
impl PartialEq<ConflictReason> for ConflictReason[src]impl Serialize for ConflictReason[src]
impl Serialize for ConflictReason[src]impl TryFrom<u8> for ConflictReason[src]
impl TryFrom<u8> for ConflictReason[src]impl Copy for ConflictReason[src]
impl Eq for ConflictReason[src]
impl StructuralEq for ConflictReason[src]
impl StructuralPartialEq for ConflictReason[src]
Auto Trait Implementations
impl RefUnwindSafe for ConflictReason
impl Send for ConflictReason
impl Sync for ConflictReason
impl Unpin for ConflictReason
impl UnwindSafe for ConflictReason
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,