pub enum TeamRuntimeError {
LifecycleHook {
hook: String,
phase: TeamLifecyclePhase,
message: String,
},
PolicyDenied {
operation: String,
reason: String,
},
BudgetExceeded(String),
UnsafeResume(String),
StatePolicy(String),
}Expand description
Structured failure produced while a compiled team is executing.
Variants§
LifecycleHook
A lifecycle hook failed.
Fields
§
phase: TeamLifecyclePhaseLifecycle boundary.
PolicyDenied
A lifecycle policy denied an operation.
BudgetExceeded(String)
A configured aggregate budget was exhausted.
UnsafeResume(String)
A persisted delegation cannot be replayed safely.
StatePolicy(String)
Delegated state violated its write/merge contract.
Trait Implementations§
Source§impl Debug for TeamRuntimeError
impl Debug for TeamRuntimeError
Source§impl Display for TeamRuntimeError
impl Display for TeamRuntimeError
Source§impl Error for TeamRuntimeError
impl Error for TeamRuntimeError
1.30.0 · 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<TeamRuntimeError> for AdkError
impl From<TeamRuntimeError> for AdkError
Source§fn from(error: TeamRuntimeError) -> Self
fn from(error: TeamRuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TeamRuntimeError
impl RefUnwindSafe for TeamRuntimeError
impl Send for TeamRuntimeError
impl Sync for TeamRuntimeError
impl Unpin for TeamRuntimeError
impl UnsafeUnpin for TeamRuntimeError
impl UnwindSafe for TeamRuntimeError
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