pub enum DispatcherError {
MissingCoverage {
missing: Vec<String>,
},
DuplicateHelper {
kind: String,
},
UnknownKind {
kind: String,
},
}Expand description
Build-time / seal-time dispatcher error.
Variants§
MissingCoverage
One or more variant kinds reflected by V::variant_kinds()
have no registered helper. Surfaces the exact missing kinds
so the consumer can fix at compile time.
DuplicateHelper
Two helpers registered for the same kind. The dispatcher refuses ambiguity — pick one.
UnknownKind
An applied variant carried a kind not in the variant universe. Can only happen if the variant enum was hand- constructed via serde without the typed enum (i.e. the reflection contract was violated upstream).
Trait Implementations§
Source§impl Debug for DispatcherError
impl Debug for DispatcherError
Source§impl Display for DispatcherError
impl Display for DispatcherError
Source§impl Error for DispatcherError
impl Error for DispatcherError
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()
Auto Trait Implementations§
impl Freeze for DispatcherError
impl RefUnwindSafe for DispatcherError
impl Send for DispatcherError
impl Sync for DispatcherError
impl Unpin for DispatcherError
impl UnsafeUnpin for DispatcherError
impl UnwindSafe for DispatcherError
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