#[non_exhaustive]pub enum ImportDescriptorError {
CapabilityPackageMismatch {
slot_id: BoxId,
capability: CapabilityId,
},
DuplicateCapability {
capability: CapabilityId,
},
}Expand description
A failure to construct an import descriptor.
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.
CapabilityPackageMismatch
An imported capability belonged to a package other than its slot.
Fields
§
capability: CapabilityIdThe mismatched qualified capability identity.
DuplicateCapability
A capability identity appeared more than once in the import set.
Fields
§
capability: CapabilityIdThe repeated capability identity.
Trait Implementations§
Source§impl Clone for ImportDescriptorError
impl Clone for ImportDescriptorError
Source§fn clone(&self) -> ImportDescriptorError
fn clone(&self) -> ImportDescriptorError
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 ImportDescriptorError
impl Debug for ImportDescriptorError
Source§impl Display for ImportDescriptorError
impl Display for ImportDescriptorError
impl Eq for ImportDescriptorError
Source§impl Error for ImportDescriptorError
impl Error for ImportDescriptorError
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 ImportDescriptorError
impl PartialEq for ImportDescriptorError
impl StructuralPartialEq for ImportDescriptorError
Auto Trait Implementations§
impl Freeze for ImportDescriptorError
impl RefUnwindSafe for ImportDescriptorError
impl Send for ImportDescriptorError
impl Sync for ImportDescriptorError
impl Unpin for ImportDescriptorError
impl UnsafeUnpin for ImportDescriptorError
impl UnwindSafe for ImportDescriptorError
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