Skip to main content

TeamError

Enum TeamError 

Source
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.

Fields

§field: &'static str

Name-bearing field that failed validation.

§

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

§endpoint: &'static str

Whether the source or target was invalid.

§name: String

Invalid member name.

§

SelfRelationship(String)

A member points to itself.

§

DuplicateRelationship

The same semantic edge occurs more than once.

Fields

§from: String

Source member.

§to: String

Target member.

§kind: RelationshipKind

Repeated 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

§member: String

Member carrying the invalid requirement.

§reason: String

Actionable validation failure.

§

InvalidRelationshipPolicy

An exact relationship contract is invalid.

Fields

§from: String

Relationship source.

§to: String

Relationship target.

§reason: String

Actionable validation failure.

§

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

§member: String

Portable member name.

§capability: &'static str

Missing execution-plane capability.

§relationship: String

Relationship that requires the capability.

§

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

§member: String

Portable member name.

§capabilities: Vec<String>

Required capability identifiers.

§

IncompatibleExecutionSnapshot(String)

A persisted execution receipt cannot be restored into this compiled team.

Trait Implementations§

Source§

impl Debug for TeamError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TeamError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for TeamError

Source§

impl Error for TeamError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<TeamError> for AdkError

Source§

fn from(error: TeamError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for TeamError

Source§

fn eq(&self, other: &TeamError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TeamError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more