pub enum WasmModelError {
Show 48 variants
EmptyField {
field: &'static str,
},
InvalidToken {
field: &'static str,
value: String,
},
InvalidChecksum {
field: &'static str,
value: String,
},
ArtifactRead {
path: String,
reason: String,
},
ArtifactChecksumMismatch {
path: String,
expected: String,
actual: String,
},
DuplicateConfigField {
key: String,
},
UnknownConfigField {
key: String,
},
MissingRequiredConfigField {
key: String,
},
ConfigTypeMismatch {
key: String,
expected: ExtensionConfigValueType,
actual: ExtensionConfigValueType,
},
InvalidConfigValue {
key: String,
reason: String,
},
DuplicateJsonLdProperty {
property: String,
},
InvalidJsonLdProperty {
property: String,
},
InvalidJsonLdNumber {
property: String,
value: String,
},
InvalidRoute {
field: &'static str,
route: String,
},
DuplicateHandlerId {
handler_id: String,
},
UnsupportedPageMethod {
method: HttpMethod,
},
UnsupportedGrantForPoint {
handler_id: String,
point: ExtensionPointKind,
grant: HostCapabilityGrant,
},
HandlerNotFound {
handler_id: String,
},
DuplicateInstalledHandler {
handler_id: String,
},
DuplicateInstalledExtension {
extension_id: String,
},
MixedCustomerAppInstallation {
extension_id: String,
expected: String,
actual: String,
},
GrantNotDeclared {
handler_id: String,
grant: HostCapabilityGrant,
},
HostApiVersionMismatch {
extension_id: String,
expected: ContractVersion,
actual: ContractVersion,
},
DuplicateExtensionTarget {
point: ExtensionPointKind,
target: String,
existing_handler: String,
conflicting_handler: String,
},
LimitOverrideExceedsDeclared {
handler_id: String,
field: &'static str,
},
ZeroLimit {
field: &'static str,
},
PrincipalIdRequired {
kind: PrincipalKind,
},
InvocationPointMismatch {
handler_id: String,
expected: ExtensionPointKind,
actual: ExtensionPointKind,
},
InvocationTargetMismatch {
handler_id: String,
detail: String,
},
UnverifiedWebhook {
handler_id: String,
},
ReplayUnsafeWebhook {
handler_id: String,
},
HostGrantDenied {
handler_id: String,
grant: HostCapabilityGrant,
},
HostServiceUnavailable {
handler_id: String,
domain: HostServiceDomain,
reason: String,
},
ResourceLimitExceeded {
handler_id: String,
field: &'static str,
},
ZeroSchemaVersion {
field: &'static str,
},
InvalidOutcomeForPoint {
handler_id: String,
point: ExtensionPointKind,
outcome: &'static str,
},
RuntimeBudgetExceeded {
handler_id: String,
max_runtime: Duration,
actual_runtime: Duration,
},
EngineCompile {
reason: String,
},
EngineInstantiate {
handler_id: String,
reason: String,
},
EngineExportMissing {
handler_id: String,
export: String,
},
EngineTrap {
handler_id: String,
reason: String,
},
InvalidHostCapabilitySlot {
handler_id: String,
slot: i32,
},
InvalidHostCallMetric {
handler_id: String,
metric: i64,
},
InvalidOutcomeCode {
handler_id: String,
code: i32,
},
InvalidTypedStatus {
status: u16,
},
InvalidTypedReturn {
reason: String,
},
TypedReturnPointMismatch {
expected: ExtensionPointKind,
actual: ExtensionPointKind,
},
TypedReturnBodyMismatch {
point: ExtensionPointKind,
body: String,
},
}Variants§
EmptyField
InvalidToken
InvalidChecksum
ArtifactRead
ArtifactChecksumMismatch
DuplicateConfigField
UnknownConfigField
MissingRequiredConfigField
ConfigTypeMismatch
InvalidConfigValue
DuplicateJsonLdProperty
InvalidJsonLdProperty
InvalidJsonLdNumber
InvalidRoute
DuplicateHandlerId
UnsupportedPageMethod
Fields
§
method: HttpMethodUnsupportedGrantForPoint
HandlerNotFound
DuplicateInstalledHandler
DuplicateInstalledExtension
MixedCustomerAppInstallation
GrantNotDeclared
HostApiVersionMismatch
DuplicateExtensionTarget
Fields
§
point: ExtensionPointKindLimitOverrideExceedsDeclared
ZeroLimit
PrincipalIdRequired
Fields
§
kind: PrincipalKindInvocationPointMismatch
InvocationTargetMismatch
UnverifiedWebhook
ReplayUnsafeWebhook
HostGrantDenied
ResourceLimitExceeded
ZeroSchemaVersion
InvalidOutcomeForPoint
RuntimeBudgetExceeded
EngineCompile
EngineInstantiate
EngineExportMissing
EngineTrap
InvalidHostCapabilitySlot
InvalidHostCallMetric
InvalidOutcomeCode
InvalidTypedStatus
InvalidTypedReturn
TypedReturnPointMismatch
TypedReturnBodyMismatch
Trait Implementations§
Source§impl Clone for WasmModelError
impl Clone for WasmModelError
Source§fn clone(&self) -> WasmModelError
fn clone(&self) -> WasmModelError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasmModelError
impl Debug for WasmModelError
Source§impl Display for WasmModelError
impl Display for WasmModelError
Source§impl Error for WasmModelError
impl Error for WasmModelError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for WasmModelError
impl PartialEq for WasmModelError
impl Eq for WasmModelError
impl StructuralPartialEq for WasmModelError
Auto Trait Implementations§
impl Freeze for WasmModelError
impl RefUnwindSafe for WasmModelError
impl Send for WasmModelError
impl Sync for WasmModelError
impl Unpin for WasmModelError
impl UnsafeUnpin for WasmModelError
impl UnwindSafe for WasmModelError
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Converts
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>
Converts
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