pub struct ConsumerError { /* private fields */ }Expand description
Opaque, typed consumer-side rejection.
The consumer surface owns a typed kernel error; the dispatcher must not
flatten it into a bare string and lose the stable discriminant. This
newtype is the dispatcher-facing projection of that typed error: it carries
the consumer’s stable ConsumerError::error_code (the same
&'static str convention used by meerkat_core::error) alongside a
human-readable message. The dispatcher moves it across the seam verbatim,
so DispatchRefusal::ConsumerRefused / SignalDispatchRefusal::ConsumerRefused
expose the typed code rather than re-parsing a flattened reason string.
Implementations§
Source§impl ConsumerError
impl ConsumerError
Trait Implementations§
Source§impl Clone for ConsumerError
impl Clone for ConsumerError
Source§fn clone(&self) -> ConsumerError
fn clone(&self) -> ConsumerError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConsumerError
impl Debug for ConsumerError
Source§impl Display for ConsumerError
impl Display for ConsumerError
impl Eq for ConsumerError
Source§impl Error for ConsumerError
impl Error for ConsumerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<String> for ConsumerError
impl From<String> for ConsumerError
Source§fn from(message: String) -> Self
fn from(message: String) -> Self
Consumer-surface input projection/refusal detail that the kernel
produced as a bare string is carried across the dispatch seam under a
stable consumer_projection_failed discriminant (the string stays as
human-readable detail, but the typed code is what the dispatcher and
RMAT audits observe — never a re-parsed message).
Source§impl PartialEq for ConsumerError
impl PartialEq for ConsumerError
Source§fn eq(&self, other: &ConsumerError) -> bool
fn eq(&self, other: &ConsumerError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConsumerError
Auto Trait Implementations§
impl Freeze for ConsumerError
impl RefUnwindSafe for ConsumerError
impl Send for ConsumerError
impl Sync for ConsumerError
impl Unpin for ConsumerError
impl UnsafeUnpin for ConsumerError
impl UnwindSafe for ConsumerError
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
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
key and return true if they are equal.