pub enum TeamError {
Show 22 variants
EmptyName {
field: &'static str,
},
DuplicateMember(String),
TeamNameCollision(String),
UnknownCoordinator(String),
UnknownRelationshipMember {
endpoint: &'static str,
name: String,
},
SelfRelationship(String),
DuplicateRelationship {
from: String,
to: String,
kind: RelationshipKind,
},
CyclicTopology(String),
UnreachableMember(String),
InvalidPolicy(&'static str),
InvalidMemberCapability {
member: String,
reason: String,
},
InvalidRelationshipPolicy {
from: String,
to: String,
reason: String,
},
InvalidBudget(&'static str),
UnknownTerminationAuthor(String),
MissingAgent(String),
DuplicateAgentBinding(String),
UnexpectedAgentBinding(String),
UnsupportedAgentCapability {
member: String,
capability: &'static str,
relationship: String,
},
DelegationFeatureDisabled,
Registry(String),
NoRegistryCandidate {
member: String,
capabilities: Vec<String>,
},
IncompatibleExecutionSnapshot(String),
}Expand description
Validation or compilation failure for a TeamSpec.
Variants§
EmptyName
A required name is empty.
DuplicateMember(String)
A member name occurs more than once.
TeamNameCollision(String)
The team root name collides with a member name.
UnknownCoordinator(String)
The coordinator is not declared as a member.
UnknownRelationshipMember
A relationship references a missing member.
Fields
SelfRelationship(String)
A member points to itself.
DuplicateRelationship
The same semantic edge occurs more than once.
Fields
kind: RelationshipKindRepeated relationship kind.
CyclicTopology(String)
The directed topology contains a cycle.
UnreachableMember(String)
A member cannot be reached from the coordinator.
InvalidPolicy(&'static str)
A depth or concurrency policy is zero.
InvalidMemberCapability
A member capability requirement is empty or repeated.
Fields
InvalidRelationshipPolicy
An exact relationship contract is invalid.
Fields
InvalidBudget(&'static str)
A team budget contains a zero bound.
UnknownTerminationAuthor(String)
A termination rule names an undeclared member.
MissingAgent(String)
No concrete agent was registered for a member.
DuplicateAgentBinding(String)
More than one concrete agent has the same name.
UnexpectedAgentBinding(String)
A concrete agent was supplied but is not declared by the specification.
UnsupportedAgentCapability
A bound source agent cannot enforce a declared relationship.
Fields
DelegationFeatureDisabled
Delegation support was not compiled into adk-agent.
Registry(String)
A dynamic registry operation failed.
NoRegistryCandidate
No registry candidate satisfies a portable member requirement.
Fields
IncompatibleExecutionSnapshot(String)
A persisted execution receipt cannot be restored into this compiled team.
Trait Implementations§
impl Eq for TeamError
Source§impl Error for TeamError
impl Error for TeamError
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()
impl StructuralPartialEq for TeamError
Auto Trait Implementations§
impl Freeze for TeamError
impl RefUnwindSafe for TeamError
impl Send for TeamError
impl Sync for TeamError
impl Unpin for TeamError
impl UnsafeUnpin for TeamError
impl UnwindSafe for TeamError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.