pub enum LineStatusError {
Envelope(String),
Sign(String),
Payload(String),
LineMismatch {
expected: String,
got: String,
},
Stale {
line: String,
presented: u64,
cached: u64,
},
DeadReference {
what: String,
id: String,
line: String,
reason: String,
},
UnknownLayer {
what: String,
id: String,
line: String,
existing: String,
},
NotALayout {
layout: String,
},
Io {
path: String,
source: Error,
},
}Variants§
Envelope(String)
The DSSE envelope failed verification or was malformed. Carries the
verifier’s reason verbatim — but under a line-status heading, because
the old #[error(transparent)] route surfaced these as “manifest
signature verification failed”, sending the reader to the wrong
document entirely (varve#60).
Sign(String)
Payload(String)
LineMismatch
Stale
DeadReference
An advisory entry that can never fire (varve#61): varve status
matches affected ids and yank keys against installed layer ids
EXACTLY, so a typo’d id signs fine and then warns nobody. Refused on
the producing side, where the fix (re-sign) is still cheap.
UnknownLayer
REQ-ADVISORY-002. The id is a well-formed layer of this line and names
no layer that EXISTS — a typo one character deep. It signs cleanly, the
producer sees success, the consumer sees nothing, and the yank silently
does not exist. Refused wherever the signer can see the line’s layers;
--force is for the legitimate case of pre-signing an advisory for a
layer not deposited yet.
NotALayout
Io
Trait Implementations§
Source§impl Debug for LineStatusError
impl Debug for LineStatusError
Source§impl Display for LineStatusError
impl Display for LineStatusError
Source§impl Error for LineStatusError
impl Error for LineStatusError
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()