pub enum DispatchError {
Truncated,
UnknownKind(u16),
Wire(WireError),
}Expand description
Top-level errors the FoldRegistry::dispatch surfaces.
Distinct from WireError because the registry layer
surfaces routing-shaped failures (no fold for this kind,
truncated envelope) separately from per-fold codec /
verification errors.
Variants§
Truncated
Envelope was shorter than the 1-3 byte postcard varint
the wire kind field occupies (an empty buffer, or a
continuation-byte-promised followup that’s missing).
UnknownKind(u16)
No fold registered for the envelope’s kind. The
dispatch layer logs + drops; the kind is surfaced so
operator dashboards can pick up “publisher is on the
wrong wire schema.”
Wire(WireError)
Per-fold codec / verification / apply error. Wraps the
underlying WireError so the caller can pattern-match
against the specific failure mode.
Trait Implementations§
Source§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
impl Display for DispatchError
Source§impl Error for DispatchError
impl Error for DispatchError
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 DispatchError
impl RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnsafeUnpin for DispatchError
impl UnwindSafe for DispatchError
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