pub enum CoderError {
Workspace(String),
PromptTooLarge {
actual: usize,
cap: usize,
},
BadEmission(String),
FileWrite(String),
EmptyEmission {
path: String,
},
LooksLikeDiff {
path: String,
},
LeakedMarker {
path: String,
},
Inference(String),
CapabilityDenied {
kind: &'static str,
target: String,
},
Io(Error),
}Variants§
Workspace(String)
PromptTooLarge
BadEmission(String)
FileWrite(String)
EmptyEmission
The emitted body for path was empty or whitespace-only.
A whole-file emission must contain something to write; an empty
body is never a legitimate rewrite. The file write failed:
prefix is load-bearing — the ACP worker and existing call sites
match on it.
LooksLikeDiff
The emitted body for path looked like a unified diff rather
than the complete file contents (its first non-blank line begins
with --- , +++ , or @@).
LeakedMarker
The emitted body for path still began with a leaked FILE:
marker as its first non-blank line (defense in depth in case the
parser did not strip it).
Inference(String)
CapabilityDenied
The peer’s signed Caveats deny the tool
call this dispatch would have made.
kind names the axis that refused — one of "fs_read",
"fs_write", "net", "exec", or "max_calls" — and target
names the concrete item the dispatch tried to touch (the path, the
host, or "<turn>" for the max_calls budget). The pair is
load-bearing for arbiter scorecards: every CapabilityDenied
becomes a scrubbed-sortie reason, not a model failure.
Io(Error)
Trait Implementations§
Source§impl Debug for CoderError
impl Debug for CoderError
Source§impl Display for CoderError
impl Display for CoderError
Source§impl Error for CoderError
impl Error for CoderError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for CoderError
impl !UnwindSafe for CoderError
impl Freeze for CoderError
impl Send for CoderError
impl Sync for CoderError
impl Unpin for CoderError
impl UnsafeUnpin for CoderError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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