ExtractionFailure
yosoi::contracts::ExtractionFailure
pub enum ExtractionFailure
Schema or resource failure rejecting candidate assembly as an operation.
Source: crates/yosoi/src/internal/extractor/mod.rs:192
SDK re-export: Source: crates/yosoi/src/contracts.rs:11
Variants
Section titled “Variants”CountOverflow
Section titled “CountOverflow”CountOverflow { limit: yosoi::contracts::ExtractionLimit }
A resource count cannot fit the unsigned extraction accounting representation.
Source: crates/yosoi/src/internal/extractor/mod.rs:198
limit: yosoi::contracts::ExtractionLimit
Resource whose count could not be represented.
Source: crates/yosoi/src/internal/extractor/mod.rs:200
GroupingIndexInvariant
Section titled “GroupingIndexInvariant”GroupingIndexInvariant
Grouping state no longer corresponds to deterministic candidate order.
Source: crates/yosoi/src/internal/extractor/mod.rs:204
InvalidContractSchema
Section titled “InvalidContractSchema”InvalidContractSchema(yosoi::contracts::ContractSchemaError)
The Contract schema fails structural validation before extraction can proceed.
Source: crates/yosoi/src/internal/extractor/mod.rs:195
0: yosoi::contracts::ContractSchemaError
Source: crates/yosoi/src/internal/extractor/mod.rs:195
LimitExceeded
Section titled “LimitExceeded”LimitExceeded { limit: yosoi::contracts::ExtractionLimit, maximum: u64, observed: u64 }
A configured assembly resource budget was exceeded.
Source: crates/yosoi/src/internal/extractor/mod.rs:207
limit: yosoi::contracts::ExtractionLimit
Resource whose budget was exceeded.
Source: crates/yosoi/src/internal/extractor/mod.rs:209
maximum
Section titled “maximum”maximum: u64
Maximum permitted count in units of that resource.
Source: crates/yosoi/src/internal/extractor/mod.rs:211
observed
Section titled “observed”observed: u64
Recorded or attempted count in the same units.
Source: crates/yosoi/src/internal/extractor/mod.rs:213
Trait implementations
Section titled “Trait implementations”Clone
fn clone(&self) -> yosoi::contracts::ExtractionFailure
Debug
fn fmt(&self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
Display
fn fmt(&self, __formatter: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result
Error
source
Section titled “source”fn source(&self) -> ::core::option::Option<&dyn ::thiserror::__private21::Error + 'static>
From
fn from(source: yosoi::contracts::ContractSchemaError) -> Self
PartialEq
fn eq(&self, other: &yosoi::contracts::ExtractionFailure) -> bool
Serialize
serialize
Section titled “serialize”fn serialize<S>(&self, serializer: S) -> Result<<S as >::Ok, <S as >::Error> where S: serde::Serializer