pub enum AgentError {
Show 13 variants
Held {
action: String,
draft: String,
},
Invalid(&'static str),
Unknown(String),
NameTaken(String),
Identity {
holder: String,
agent: String,
},
Present {
agent: String,
connection: u64,
since_ms: u64,
},
Bound {
bound: &'static str,
limit: usize,
count: usize,
},
Transition(&'static str),
DraftMismatch,
ServerOwned(String),
Store(String),
Uncertain,
Delivery(&'static str),
}Expand description
Why an agent operation did nothing, or why its durable outcome is unknown.
Variants§
Held
A deliberate act is still a draft in Lys.
Invalid(&'static str)
A boundary value is malformed; only the member is named.
Unknown(String)
A name has no retained record.
NameTaken(String)
A retained name cannot be reused, including after retirement.
Identity
An identity claim does not match the verified pass.
Present
Another live connection holds this agent’s seat. It is never taken over or shared: the seat is released when that connection closes, or when its peer stops answering the kernel’s keepalive.
Fields
Bound
A configured count or byte bound is reached.
Fields
Transition(&'static str)
The state machine does not admit this event.
DraftMismatch
A draft id is already bound to different immutable words.
ServerOwned(String)
Only the server writes presence and state.
Store(String)
A lock or store failed; request bodies are never included.
Uncertain
A write may have committed; reopen before making another decision.
Delivery(&'static str)
The library refused delivery, with no body retained in the error.
Trait Implementations§
Source§impl Debug for AgentError
impl Debug for AgentError
Source§impl Display for AgentError
impl Display for AgentError
Source§impl Error for AgentError
impl Error for AgentError
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()