Enum rune::ContextError
source · [−]#[non_exhaustive]
pub enum ContextError {
Show 20 variants
UnitAlreadyPresent,
InternalAlreadyPresent {
name: &'static str,
},
ConflictingMeta {
current: Meta,
existing: Meta,
},
ConflictingFunction {
signature: ContextSignature,
hash: Hash,
},
ConflictingFunctionName {
name: Item,
},
ConflictingConstantName {
name: Item,
},
ConflictingInstanceFunction {
type_info: TypeInfo,
name: Box<str>,
},
ConflictingProtocolFunction {
type_info: TypeInfo,
name: Box<str>,
},
ConflictingInstanceFunctionHash {
type_info: TypeInfo,
hash: Hash,
},
ConflictingModule {
item: Item,
hash: Hash,
},
ConflictingType {
item: Item,
type_info: TypeInfo,
},
ConflictingTypeMeta {
item: Item,
type_info: TypeInfo,
},
MissingType {
item: Item,
type_info: TypeInfo,
},
MissingEnum {
item: Item,
type_info: TypeInfo,
},
ConflictingTypeHash {
hash: Hash,
existing: Hash,
},
ConflictingVariant {
item: Item,
},
MissingInstance {
instance_type: TypeInfo,
},
ValueError {
error: VmError,
},
MissingVariant {
type_info: TypeInfo,
index: usize,
},
VariantConstructorConflict {
type_info: TypeInfo,
index: usize,
},
}Expand description
An error raised when building the context.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnitAlreadyPresent
InternalAlreadyPresent
Fields
name: &'static strConflictingMeta
ConflictingFunction
ConflictingFunctionName
Fields
name: ItemConflictingConstantName
Fields
name: ItemConflictingInstanceFunction
ConflictingProtocolFunction
ConflictingInstanceFunctionHash
ConflictingModule
ConflictingType
ConflictingTypeMeta
MissingType
MissingEnum
ConflictingTypeHash
ConflictingVariant
Fields
item: ItemMissingInstance
Fields
instance_type: TypeInfoValueError
Fields
error: VmErrorMissingVariant
VariantConstructorConflict
Trait Implementations
sourceimpl Debug for ContextError
impl Debug for ContextError
sourceimpl Display for ContextError
impl Display for ContextError
sourceimpl Error for ContextError
impl Error for ContextError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for ContextError
impl Send for ContextError
impl Sync for ContextError
impl Unpin for ContextError
impl !UnwindSafe for ContextError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more