Skip to main content

LinkError

Enum LinkError 

Source
pub enum LinkError {
Show 35 variants DuplicateDeclaration { name: String, span: Option<Span>, }, DuplicateProcessParam { name: String, span: Option<Span>, }, UnknownProcess { name: String, span: Option<Span>, }, MissingProcessArgument { process: String, arg: String, span: Option<Span>, }, UnexpectedProcessArgument { process: String, arg: String, span: Option<Span>, }, DuplicateProcessArgument { arg: String, span: Option<Span>, }, UnknownName { name: String, span: Option<Span>, }, UnknownBuiltin { name: String, span: Option<Span>, }, UnknownResource { path: String, span: Option<Span>, }, UnknownType { name: String, span: Option<Span>, }, IncompatibleConstructorInput { path: String, expected: String, actual: String, span: Option<Span>, }, IncompatibleOperationInput { operation: String, expected: String, actual: String, span: Option<Span>, }, IncompatibleProcessReturn { process: String, expected: String, actual: String, span: Option<Span>, }, InvalidTriggerRegistration { span: Option<Span>, }, InvalidTriggerInputs { span: Option<Span>, }, DuplicateTriggerInput { input: String, span: Option<Span>, }, MissingTriggerInput { process: String, input: String, span: Option<Span>, }, UnknownTriggerInput { process: String, input: String, span: Option<Span>, }, MissingTriggerEventInput { span: Option<Span>, }, TriggerEventOutsideInputs { span: Option<Span>, }, TriggerEventProjection { span: Option<Span>, }, InvalidTriggerList { span: Option<Span>, }, InvalidTriggerCancel { span: Option<Span>, }, UnknownTriggerSourceType { source_ty: String, span: Option<Span>, }, InvalidTriggerTarget { actual: String, span: Option<Span>, }, TriggerEventMismatch { event: String, input_name: String, input: String, span: Option<Span>, }, UnresolvedReceiver { operation: String, span: Option<Span>, }, UnknownResourceOperation { resource_type: String, operation: String, span: Option<Span>, }, AmbiguousModuleOperation { module_path: String, operation: String, suggestions: Vec<String>, span: Option<Span>, }, BareToolCall { name: String, suggestion: String, span: Option<Span>, }, IncompatibleProcessArgument { process: String, arg: String, expected: String, actual: String, span: Option<Span>, }, FeatureDisabled { feature: &'static str, span: Option<Span>, }, ProcessLifecycleOutsideProcess { keyword: &'static str, span: Option<Span>, }, OpaqueHostValueAccess { type_name: String, access: String, span: Option<Span>, }, ModuleHash { message: String, },
}

Variants§

§

DuplicateDeclaration

Fields

§name: String
§span: Option<Span>
§

DuplicateProcessParam

Fields

§name: String
§span: Option<Span>
§

UnknownProcess

Fields

§name: String
§span: Option<Span>
§

MissingProcessArgument

Fields

§process: String
§span: Option<Span>
§

UnexpectedProcessArgument

Fields

§process: String
§span: Option<Span>
§

DuplicateProcessArgument

Fields

§span: Option<Span>
§

UnknownName

Fields

§name: String
§span: Option<Span>
§

UnknownBuiltin

Fields

§name: String
§span: Option<Span>
§

UnknownResource

Fields

§path: String
§span: Option<Span>
§

UnknownType

Fields

§name: String
§span: Option<Span>
§

IncompatibleConstructorInput

Fields

§path: String
§expected: String
§actual: String
§span: Option<Span>
§

IncompatibleOperationInput

Fields

§operation: String
§expected: String
§actual: String
§span: Option<Span>
§

IncompatibleProcessReturn

Fields

§process: String
§expected: String
§actual: String
§span: Option<Span>
§

InvalidTriggerRegistration

Fields

§span: Option<Span>
§

InvalidTriggerInputs

Fields

§span: Option<Span>
§

DuplicateTriggerInput

Fields

§input: String
§span: Option<Span>
§

MissingTriggerInput

Fields

§process: String
§input: String
§span: Option<Span>
§

UnknownTriggerInput

Fields

§process: String
§input: String
§span: Option<Span>
§

MissingTriggerEventInput

Fields

§span: Option<Span>
§

TriggerEventOutsideInputs

Fields

§span: Option<Span>
§

TriggerEventProjection

Fields

§span: Option<Span>
§

InvalidTriggerList

Fields

§span: Option<Span>
§

InvalidTriggerCancel

Fields

§span: Option<Span>
§

UnknownTriggerSourceType

Fields

§source_ty: String
§span: Option<Span>
§

InvalidTriggerTarget

Fields

§actual: String
§span: Option<Span>
§

TriggerEventMismatch

Fields

§event: String
§input_name: String
§input: String
§span: Option<Span>
§

UnresolvedReceiver

Fields

§operation: String
§span: Option<Span>
§

UnknownResourceOperation

Fields

§resource_type: String
§operation: String
§span: Option<Span>
§

AmbiguousModuleOperation

Fields

§module_path: String
§operation: String
§suggestions: Vec<String>
§span: Option<Span>
§

BareToolCall

Fields

§name: String
§suggestion: String
§span: Option<Span>
§

IncompatibleProcessArgument

Fields

§process: String
§expected: String
§actual: String
§span: Option<Span>
§

FeatureDisabled

Fields

§feature: &'static str
§span: Option<Span>
§

ProcessLifecycleOutsideProcess

Fields

§keyword: &'static str
§span: Option<Span>
§

OpaqueHostValueAccess

Fields

§type_name: String
§access: String
§span: Option<Span>
§

ModuleHash

Fields

§message: String

Implementations§

Source§

impl LinkError

Source

pub fn span(&self) -> Option<Span>

Trait Implementations§

Source§

impl Clone for LinkError

Source§

fn clone(&self) -> LinkError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LinkError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for LinkError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for LinkError

Source§

impl Error for LinkError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<LinkError> for LinkedProgramCacheError

Source§

fn from(source: LinkError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for LinkError

Source§

fn eq(&self, other: &LinkError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for LinkError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToCompactString for T
where T: Display,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.