pub enum EntityTypeError {
WrongKind {
raw_type: String,
actual_kind: &'static str,
expected_kind: &'static str,
valid: String,
},
UnknownType {
raw_type: String,
kind: &'static str,
valid: String,
},
}Expand description
Error produced by EntityTypeRegistry::resolve.
Dependency-light: khive-types cannot depend on khive-runtime, so
callers map this to their own error type at the pack boundary.
Variants§
WrongKind
The raw type name exists, but belongs to a different EntityKind.
UnknownType
The raw type name is not registered for any kind.
Trait Implementations§
Source§impl Clone for EntityTypeError
impl Clone for EntityTypeError
Source§fn clone(&self) -> EntityTypeError
fn clone(&self) -> EntityTypeError
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 EntityTypeError
impl Debug for EntityTypeError
Source§impl Display for EntityTypeError
impl Display for EntityTypeError
impl Eq for EntityTypeError
Source§impl Error for EntityTypeError
Available on crate feature std only.
impl Error for EntityTypeError
Available on crate feature
std only.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 EntityTypeError
impl PartialEq for EntityTypeError
impl StructuralPartialEq for EntityTypeError
Auto Trait Implementations§
impl Freeze for EntityTypeError
impl RefUnwindSafe for EntityTypeError
impl Send for EntityTypeError
impl Sync for EntityTypeError
impl Unpin for EntityTypeError
impl UnsafeUnpin for EntityTypeError
impl UnwindSafe for EntityTypeError
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