pub enum ComposeHealthError {
UnknownMem {
name: String,
writable_mems: Vec<String>,
},
MemQuarantined(String),
InvalidTargetSchema {
raw: String,
reason: String,
},
Engine(EngineError),
}Expand description
Typed input failures the composer surfaces. The MCP wrapper maps each
variant to its existing envelope (UNKNOWN_MEM, INVALID_INPUT) and
the engine fault to its typed translator, so the wire code stays put.
Variants§
UnknownMem
args.mem names a mem that isn’t writable in this workspace. The
composer surfaces the sorted writable roster so the wrapper can echo
it in the UNKNOWN_MEM envelope.
MemQuarantined(String)
args.mem names a QUARANTINED mem — the scope refuses with the
typed quarantine reason rather than reporting the mem unknown
(agent-trust plan 04). The wrapper maps it through its ordinary
engine-error path via Engine::unknown_mem_error.
InvalidTargetSchema
args.target_schema did not parse as a name@x.y.z ref. reason is
the parser’s message, surfaced verbatim in the INVALID_INPUT
envelope’s details.reason.
Engine(EngineError)
A backend fault from the conformance / consistency scan. The wrapper
routes it through the typed EngineError translator unchanged.
Trait Implementations§
Source§impl Debug for ComposeHealthError
impl Debug for ComposeHealthError
Source§impl Display for ComposeHealthError
impl Display for ComposeHealthError
Source§impl Error for ComposeHealthError
impl Error for ComposeHealthError
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<EngineError> for ComposeHealthError
impl From<EngineError> for ComposeHealthError
Source§fn from(source: EngineError) -> Self
fn from(source: EngineError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ComposeHealthError
impl !UnwindSafe for ComposeHealthError
impl Freeze for ComposeHealthError
impl Send for ComposeHealthError
impl Sync for ComposeHealthError
impl Unpin for ComposeHealthError
impl UnsafeUnpin for ComposeHealthError
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more