[][src]Enum lnpbp::rgb::validation::Failure

pub enum Failure {
    SchemaUnknown(SchemaId),
    SchemaRootHierarchy(SchemaId),
    SchemaRootNoFieldTypeMatch(FieldType),
    SchemaRootNoOwnedRightTypeMatch(OwnedRightType),
    SchemaRootNoPublicRightTypeMatch(PublicRightType),
    SchemaRootNoTransitionTypeMatch(TransitionType),
    SchemaRootNoExtensionTypeMatch(ExtensionType),
    SchemaRootNoMetadataMatch(NodeTypeFieldType),
    SchemaRootNoParentOwnedRightsMatch(NodeTypeOwnedRightType),
    SchemaRootNoParentPublicRightsMatch(NodeTypePublicRightType),
    SchemaRootNoOwnedRightsMatch(NodeTypeOwnedRightType),
    SchemaRootNoPublicRightsMatch(NodeTypePublicRightType),
    SchemaRootNoAbiMatch {
        node_type: NodeType,
        action_id: u16,
    },
    SchemaUnknownExtensionType(NodeIdExtensionType),
    SchemaUnknownTransitionType(NodeIdTransitionType),
    SchemaUnknownFieldType(NodeIdFieldType),
    SchemaUnknownOwnedRightType(NodeIdOwnedRightType),
    SchemaUnknownPublicRightType(NodeIdPublicRightType),
    SchemaDeniedScriptExtension(NodeId),
    SchemaMetaValueTooSmall(FieldType),
    SchemaMetaValueTooLarge(FieldType),
    SchemaStateValueTooSmall(OwnedRightType),
    SchemaStateValueTooLarge(OwnedRightType),
    SchemaMismatchedBits {
        field_or_state_type: usize,
        expected: Bits,
    },
    SchemaWrongEnumValue {
        field_or_state_type: usize,
        unexpected: u8,
    },
    SchemaWrongDataLength {
        field_or_state_type: usize,
        max_expected: u16,
        found: usize,
    },
    SchemaMismatchedDataType(usize),
    SchemaMismatchedStateType(OwnedRightType),
    SchemaMetaOccurencesError(NodeIdFieldTypeOccurrencesError),
    SchemaParentOwnedRightOccurencesError(NodeIdOwnedRightTypeOccurrencesError),
    SchemaOwnedRightOccurencesError(NodeIdOwnedRightTypeOccurrencesError),
    TransitionAbsent(NodeId),
    TransitionNotAnchored(NodeId),
    TransitionNotInAnchor(NodeIdAnchorId),
    TransitionParentWrongSealType {
        node_id: NodeId,
        ancestor_id: NodeId,
        assignment_type: OwnedRightType,
    },
    TransitionParentWrongSeal {
        node_id: NodeId,
        ancestor_id: NodeId,
        assignment_type: OwnedRightType,
        seal_index: u16,
    },
    TransitionParentConfidentialSeal {
        node_id: NodeId,
        ancestor_id: NodeId,
        assignment_type: OwnedRightType,
        seal_index: u16,
    },
    TransitionParentIsNotWitnessInput {
        node_id: NodeId,
        ancestor_id: NodeId,
        assignment_type: OwnedRightType,
        seal_index: u16,
        outpoint: OutPoint,
    },
    ExtensionAbsent(NodeId),
    ExtensionParentWrongValenciesType {
        node_id: NodeId,
        ancestor_id: NodeId,
        valencies_type: PublicRightType,
    },
    WitnessTransactionMissed(Txid),
    WitnessNoCommitment(NodeIdAnchorIdTxid),
    SimplicityIsNotSupportedYet,
    ScriptFailure(NodeIdu8),
}

Variants

SchemaUnknown(SchemaId)
SchemaRootHierarchy(SchemaId)

Root schema for this schema has another root, which is prohibited

SchemaRootNoFieldTypeMatch(FieldType)
SchemaRootNoOwnedRightTypeMatch(OwnedRightType)
SchemaRootNoPublicRightTypeMatch(PublicRightType)
SchemaRootNoTransitionTypeMatch(TransitionType)
SchemaRootNoExtensionTypeMatch(ExtensionType)
SchemaRootNoMetadataMatch(NodeTypeFieldType)
SchemaRootNoParentOwnedRightsMatch(NodeTypeOwnedRightType)
SchemaRootNoParentPublicRightsMatch(NodeTypePublicRightType)
SchemaRootNoOwnedRightsMatch(NodeTypeOwnedRightType)
SchemaRootNoPublicRightsMatch(NodeTypePublicRightType)
SchemaRootNoAbiMatch

Fields of SchemaRootNoAbiMatch

node_type: NodeTypeaction_id: u16
SchemaUnknownExtensionType(NodeIdExtensionType)
SchemaUnknownTransitionType(NodeIdTransitionType)
SchemaUnknownFieldType(NodeIdFieldType)
SchemaUnknownOwnedRightType(NodeIdOwnedRightType)
SchemaUnknownPublicRightType(NodeIdPublicRightType)
SchemaDeniedScriptExtension(NodeId)
SchemaMetaValueTooSmall(FieldType)
SchemaMetaValueTooLarge(FieldType)
SchemaStateValueTooSmall(OwnedRightType)
SchemaStateValueTooLarge(OwnedRightType)
SchemaMismatchedBits

Fields of SchemaMismatchedBits

field_or_state_type: usizeexpected: Bits
SchemaWrongEnumValue

Fields of SchemaWrongEnumValue

field_or_state_type: usizeunexpected: u8
SchemaWrongDataLength

Fields of SchemaWrongDataLength

field_or_state_type: usizemax_expected: u16found: usize
SchemaMismatchedDataType(usize)
SchemaMismatchedStateType(OwnedRightType)
SchemaMetaOccurencesError(NodeIdFieldTypeOccurrencesError)
SchemaParentOwnedRightOccurencesError(NodeIdOwnedRightTypeOccurrencesError)
SchemaOwnedRightOccurencesError(NodeIdOwnedRightTypeOccurrencesError)
TransitionAbsent(NodeId)
TransitionNotAnchored(NodeId)
TransitionNotInAnchor(NodeIdAnchorId)
TransitionParentWrongSealType

Fields of TransitionParentWrongSealType

node_id: NodeIdancestor_id: NodeIdassignment_type: OwnedRightType
TransitionParentWrongSeal

Fields of TransitionParentWrongSeal

node_id: NodeIdancestor_id: NodeIdassignment_type: OwnedRightTypeseal_index: u16
TransitionParentConfidentialSeal

Fields of TransitionParentConfidentialSeal

node_id: NodeIdancestor_id: NodeIdassignment_type: OwnedRightTypeseal_index: u16
TransitionParentIsNotWitnessInput

Fields of TransitionParentIsNotWitnessInput

node_id: NodeIdancestor_id: NodeIdassignment_type: OwnedRightTypeseal_index: u16outpoint: OutPoint
ExtensionAbsent(NodeId)
ExtensionParentWrongValenciesType

Fields of ExtensionParentWrongValenciesType

node_id: NodeIdancestor_id: NodeIdvalencies_type: PublicRightType
WitnessTransactionMissed(Txid)
WitnessNoCommitment(NodeIdAnchorIdTxid)
SimplicityIsNotSupportedYet
ScriptFailure(NodeIdu8)

Trait Implementations

impl Clone for Failure[src]

impl Debug for Failure[src]

impl Display for Failure[src]

impl Eq for Failure[src]

impl FromIterator<Failure> for Status[src]

impl PartialEq<Failure> for Failure[src]

impl StructuralEq for Failure[src]

impl StructuralPartialEq for Failure[src]

Auto Trait Implementations

impl RefUnwindSafe for Failure

impl Send for Failure

impl Sync for Failure

impl Unpin for Failure

impl UnwindSafe for Failure

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,