pub enum Layer2Error {
Show 14 variants
SessionNotFound(SessionId),
CheckpointNotFound(CheckpointId),
ToolNotFound(String),
TaskNotFound(TaskId),
LockTimeout,
InvalidStateTransition {
from: AgentState,
to: AgentState,
},
CheckpointCorrupted(String),
Io(Error),
Serialization(Error),
MaxIterations(i32),
AgentError(String),
LlmNotConfigured,
MaxSessionsReached(usize),
PermissionDenied(String),
}Expand description
统一的 Layer 2 Error 类型
Variants§
SessionNotFound(SessionId)
CheckpointNotFound(CheckpointId)
ToolNotFound(String)
TaskNotFound(TaskId)
LockTimeout
InvalidStateTransition
CheckpointCorrupted(String)
Io(Error)
Serialization(Error)
MaxIterations(i32)
AgentError(String)
LlmNotConfigured
MaxSessionsReached(usize)
PermissionDenied(String)
Trait Implementations§
Source§impl Debug for Layer2Error
impl Debug for Layer2Error
Source§impl Display for Layer2Error
impl Display for Layer2Error
Source§impl Error for Layer2Error
impl Error for Layer2Error
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()
Source§impl From<Error> for Layer2Error
impl From<Error> for Layer2Error
Auto Trait Implementations§
impl !RefUnwindSafe for Layer2Error
impl !UnwindSafe for Layer2Error
impl Freeze for Layer2Error
impl Send for Layer2Error
impl Sync for Layer2Error
impl Unpin for Layer2Error
impl UnsafeUnpin for Layer2Error
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