pub enum AgentRequest {
Reconcile(DesiredState),
ReconcileSigned(SignedPayload),
NodeInfo,
NodeStats,
TenantList,
InstanceList {
tenant_id: String,
pool_id: Option<String>,
},
WakeInstance {
tenant_id: String,
pool_id: String,
instance_id: String,
},
}Expand description
Strongly typed request sent over QUIC streams.
Variants§
Reconcile(DesiredState)
Push a new desired state for reconciliation (unsigned, dev mode only).
ReconcileSigned(SignedPayload)
Push a signed desired state for reconciliation (production mode).
NodeInfo
Query node capabilities and identity.
NodeStats
Query aggregate node statistics.
TenantList
List all tenants on this node.
InstanceList
List instances for a specific tenant (optionally filtered by pool).
WakeInstance
Urgently wake a sleeping instance.
Trait Implementations§
Source§impl Clone for AgentRequest
impl Clone for AgentRequest
Source§fn clone(&self) -> AgentRequest
fn clone(&self) -> AgentRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentRequest
impl Debug for AgentRequest
Source§impl<'de> Deserialize<'de> for AgentRequest
impl<'de> Deserialize<'de> for AgentRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentRequest
impl RefUnwindSafe for AgentRequest
impl Send for AgentRequest
impl Sync for AgentRequest
impl Unpin for AgentRequest
impl UnsafeUnpin for AgentRequest
impl UnwindSafe for AgentRequest
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