pub enum FrameworkError {
DuplicateExtension(ExtensionId),
DuplicateDependency {
extension: ExtensionId,
dependency: ExtensionId,
},
DuplicateBinding {
extension: ExtensionId,
key: BindingKey,
},
MissingDependency {
extension: ExtensionId,
dependency: ExtensionId,
},
UnsupportedContract {
extension: ExtensionId,
required: ContractVersion,
available: ContractVersion,
},
DependencyCycle(Vec<ExtensionId>),
InactiveDependency {
extension: ExtensionId,
dependency: ExtensionId,
},
InvalidRequirement {
extension: ExtensionId,
binding: BindingReference,
expected: BindingKind,
},
UndeclaredBinding {
extension: ExtensionId,
binding: BindingReference,
},
InaccessibleBinding {
extension: ExtensionId,
binding: BindingReference,
},
MissingBinding(BindingReference),
BindingKindMismatch {
binding: BindingReference,
expected: BindingKind,
actual: BindingKind,
},
}Expand description
Errors returned while registering, activating, or resolving extensions.
Variants§
DuplicateExtension(ExtensionId)
DuplicateDependency
DuplicateBinding
MissingDependency
UnsupportedContract
DependencyCycle(Vec<ExtensionId>)
InactiveDependency
InvalidRequirement
UndeclaredBinding
InaccessibleBinding
MissingBinding(BindingReference)
BindingKindMismatch
Trait Implementations§
Source§impl Clone for FrameworkError
impl Clone for FrameworkError
Source§fn clone(&self) -> FrameworkError
fn clone(&self) -> FrameworkError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FrameworkError
impl Debug for FrameworkError
Source§impl Display for FrameworkError
impl Display for FrameworkError
impl Eq for FrameworkError
Source§impl Error for FrameworkError
impl Error for FrameworkError
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 FrameworkError
impl PartialEq for FrameworkError
impl StructuralPartialEq for FrameworkError
Auto Trait Implementations§
impl Freeze for FrameworkError
impl RefUnwindSafe for FrameworkError
impl Send for FrameworkError
impl Sync for FrameworkError
impl Unpin for FrameworkError
impl UnsafeUnpin for FrameworkError
impl UnwindSafe for FrameworkError
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.