#[non_exhaustive]pub enum AssemblyError {
Show 13 variants
DuplicateBox {
box_id: BoxId,
},
UnknownImportConsumer {
consumer: BoxId,
},
UnknownImportSlot {
consumer: BoxId,
slot: BoxId,
},
DuplicateImportResolution {
consumer: BoxId,
slot: BoxId,
},
UnknownImportTarget {
consumer: BoxId,
slot: BoxId,
target: BoxId,
},
MissingImportResolution {
consumer: BoxId,
slot: BoxId,
},
MissingImportedCapability {
consumer: BoxId,
slot: BoxId,
capability: CapabilityId,
},
UnknownExposureProvider {
provider: BoxId,
},
UnknownExposedCapability {
provider: BoxId,
capability: CapabilityId,
},
ExposureExceedsMaximum {
capability: CapabilityId,
requested: ExposureLevel,
maximum: ExposureLevel,
},
TransportConformanceFailed {
capability: CapabilityId,
detail: Detail,
},
TransportPrepareFailed {
detail: Detail,
},
TransportStartFailed {
detail: Detail,
},
}Expand description
One deterministic composition-assembly validation failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DuplicateBox
A box identity was registered more than once.
UnknownImportConsumer
An import resolution named an unregistered consumer.
UnknownImportSlot
An import resolution named an undeclared slot.
Fields
DuplicateImportResolution
An import slot was resolved more than once.
Fields
UnknownImportTarget
An import resolution named an unregistered target.
Fields
MissingImportResolution
A declared import slot had no resolution.
Fields
MissingImportedCapability
A resolved target lacked one declared imported capability.
Fields
capability: CapabilityIdThe capability absent from the resolved target contract.
UnknownExposureProvider
An exposure named an unregistered provider.
UnknownExposedCapability
An exposure named a capability absent from its provider contract.
Fields
capability: CapabilityIdThe absent capability identity.
ExposureExceedsMaximum
An exposure requested a boundary wider than the capability permits.
Fields
capability: CapabilityIdThe capability being exposed.
requested: ExposureLevelThe requested exposure boundary.
maximum: ExposureLevelThe greatest permitted exposure boundary.
TransportConformanceFailed
A transport rejected one otherwise valid exposure.
Fields
capability: CapabilityIdThe rejected capability.
TransportPrepareFailed
A transport failed transactional descriptor preflight.
TransportStartFailed
A transport failed transactional startup.
Trait Implementations§
Source§impl Clone for AssemblyError
impl Clone for AssemblyError
Source§fn clone(&self) -> AssemblyError
fn clone(&self) -> AssemblyError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AssemblyError
impl Debug for AssemblyError
Source§impl Display for AssemblyError
impl Display for AssemblyError
impl Eq for AssemblyError
Source§impl Error for AssemblyError
impl Error for AssemblyError
1.30.0 · 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()