Skip to main content

AgentResponse

Enum AgentResponse 

Source
pub enum AgentResponse {
Show 21 variants ReconcileResult(ReconcileReport), NodeInfo(NodeInfo), NodeStats(NodeStats), TenantList(Vec<String>), InstanceList(Vec<InstanceState>), WakeResult { success: bool, }, InstanceActionResult { success: bool, new_status: String, error: Option<String>, }, SandboxResult { success: bool, response: Value, error: Option<String>, }, Error { code: u16, message: String, }, DeploymentStatus { pool_id: String, current_revision: String, target_revision: Option<String>, strategy: UpdateStrategy, phase: DeploymentPhase, instances_updated: u32, instances_pending: u32, canary_health: Option<f64>, paused: bool, errors: Vec<String>, }, DeploymentControlResult { success: bool, pool_id: String, new_phase: String, message: String, }, BatchActionResult { results: Vec<BatchActionItemResult>, total: u32, succeeded: u32, failed: u32, }, PoolActionResult { success: bool, pool_id: String, instances_affected: u32, errors: Vec<String>, }, Metrics(MetricsSnapshot), AuditLog { entries: Vec<AuditEntry>, total_count: u32, }, HealthStatus { instances: Vec<InstanceHealthReport>, unhealthy_count: u32, degraded_count: u32, }, ReconcileHistory { runs: Vec<ReconcileHistoryEntry>, }, StateDump(Box<StateDumpContent>), SecretsUpdateResult { success: bool, tenant_id: String, instances_reloaded: u32, errors: Vec<String>, }, ConfigUpdateResult { success: bool, pool_id: String, instances_updated: u32, errors: Vec<String>, }, SyncEventsResult { events: Vec<Value>, current_sequence: u64, },
}
Expand description

Strongly typed response returned over QUIC streams.

Variants§

§

ReconcileResult(ReconcileReport)

Result of a reconcile pass.

§

NodeInfo(NodeInfo)

Node info.

§

NodeStats(NodeStats)

Aggregate node stats.

§

TenantList(Vec<String>)

List of tenant IDs.

§

InstanceList(Vec<InstanceState>)

List of instance states.

§

WakeResult

Result of a wake operation.

Fields

§success: bool
§

InstanceActionResult

Result of an imperative instance action.

Fields

§success: bool
§new_status: String
§

SandboxResult

Result of a sandbox operation (filesystem, exec, logs).

Fields

§success: bool
§response: Value
§

Error

Error response.

Fields

§code: u16
§message: String
§

DeploymentStatus

Deployment status with rollout progress.

Fields

§pool_id: String
§current_revision: String
§target_revision: Option<String>
§instances_updated: u32
§instances_pending: u32
§canary_health: Option<f64>
§paused: bool
§errors: Vec<String>
§

DeploymentControlResult

Result of pause/resume/rollback operations.

Fields

§success: bool
§pool_id: String
§new_phase: String
§message: String
§

BatchActionResult

Result of batch instance operations.

Fields

§total: u32
§succeeded: u32
§failed: u32
§

PoolActionResult

Result of pool-level action.

Fields

§success: bool
§pool_id: String
§instances_affected: u32
§errors: Vec<String>
§

Metrics(MetricsSnapshot)

Metrics snapshot.

§

AuditLog

Audit log entries.

Fields

§entries: Vec<AuditEntry>
§total_count: u32
§

HealthStatus

Health status report for instances.

Fields

§unhealthy_count: u32
§degraded_count: u32
§

ReconcileHistory

Reconciliation history.

§

StateDump(Box<StateDumpContent>)

Complete node state dump (boxed due to size).

§

SecretsUpdateResult

Result of secrets update.

Fields

§success: bool
§tenant_id: String
§instances_reloaded: u32
§errors: Vec<String>
§

ConfigUpdateResult

Result of config update.

Fields

§success: bool
§pool_id: String
§instances_updated: u32
§errors: Vec<String>
§

SyncEventsResult

Incremental state events in response to SyncEvents.

Fields

§events: Vec<Value>

Events with sequence > the requested since value.

§current_sequence: u64

Current sequence number at the coordinator.

Trait Implementations§

Source§

impl Clone for AgentResponse

Source§

fn clone(&self) -> AgentResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AgentResponse

Source§

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

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

impl<'de> Deserialize<'de> for AgentResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for AgentResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,