pub enum AgentOutcomeError {
EmptySessionId,
Encode(Error),
}Expand description
The error serializing an AgentOutcome as its result Payload.
Variants§
EmptySessionId
The record’s mandatory session_id is the empty string.
A vacant mandatory field is a harness bug, refused here by name at the one funnel every harness serializes through — never shipped as a silently empty handle a workflow would try to resume with.
Encode(Error)
The record could not be encoded as JSON — unreachable for four plain strings, but never swallowed.
Trait Implementations§
Source§impl Debug for AgentOutcomeError
impl Debug for AgentOutcomeError
Source§impl Display for AgentOutcomeError
impl Display for AgentOutcomeError
Source§impl Error for AgentOutcomeError
impl Error for AgentOutcomeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for AgentOutcomeError
impl !UnwindSafe for AgentOutcomeError
impl Freeze for AgentOutcomeError
impl Send for AgentOutcomeError
impl Sync for AgentOutcomeError
impl Unpin for AgentOutcomeError
impl UnsafeUnpin for AgentOutcomeError
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
Mutably borrows from an owned value. Read more