#[non_exhaustive]pub enum AbiAdapterError {
InvalidPayload {
kind: &'static str,
definition: TransportDefinitionId,
reason: String,
},
SemanticHashMismatch {
kind: &'static str,
definition: TransportDefinitionId,
payload: SemanticHash,
linked: SemanticHash,
},
SourceEdgeSetMismatch {
kind: &'static str,
definition: TransportDefinitionId,
payload: Vec<String>,
linked: Vec<String>,
},
ComponentFieldRecordIdMismatch {
definition: TransportDefinitionId,
field: String,
expected: String,
actual: String,
},
DuplicateComponentFieldRecordId {
definition: TransportDefinitionId,
first_field: String,
second_field: String,
field_record: String,
},
InvalidSemanticIdentity {
kind: &'static str,
definition: TransportDefinitionId,
source: AbiValidationError,
},
CanonicalValidation {
kind: &'static str,
definition: TransportDefinitionId,
source: AbiValidationError,
},
}Expand description
Malformed data or a violated exact-link invariant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidPayload
A linked payload is not the exact legacy schema this adapter knows.
Fields
definition: TransportDefinitionIdExact defining record.
SemanticHashMismatch
The embedded semantic hash differs from the linker’s validated value.
Fields
definition: TransportDefinitionIdExact defining record.
payload: SemanticHashHash embedded in the JSON payload.
linked: SemanticHashHash carried by the linked transport value.
SourceEdgeSetMismatch
A payload source-edge set differs from relocation-linked edges.
Fields
definition: TransportDefinitionIdExact defining record.
ComponentFieldRecordIdMismatch
A direct adapter caller supplied a field record that does not match the shared producer/linker identity derivation.
Fields
definition: TransportDefinitionIdExact defining component.
DuplicateComponentFieldRecordId
Two client-visible fields reused one exact object-record identity.
Fields
definition: TransportDefinitionIdExact defining component.
InvalidSemanticIdentity
An authoritative semantic namespace is invalid.
Fields
definition: TransportDefinitionIdExact defining record.
source: AbiValidationErrorCanonical namespace validation failure.
CanonicalValidation
A constructed descriptor did not pass canonical ABI validation.
Fields
definition: TransportDefinitionIdExact defining record.
source: AbiValidationErrorCanonical validation failure.
Trait Implementations§
Source§impl Debug for AbiAdapterError
impl Debug for AbiAdapterError
Source§impl Display for AbiAdapterError
impl Display for AbiAdapterError
Source§impl Error for AbiAdapterError
impl Error for AbiAdapterError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Forget for AbiAdapterError
impl Freeze for AbiAdapterError
impl Move for AbiAdapterError
impl RefUnwindSafe for AbiAdapterError
impl Send for AbiAdapterError
impl Sync for AbiAdapterError
impl Unpin for AbiAdapterError
impl UnsafeUnpin for AbiAdapterError
impl UnwindSafe for AbiAdapterError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more