pub struct ObservedInstance {
pub handle: InstanceHandle,
pub node: u64,
pub backend: String,
pub endpoint: Endpoint,
pub region: Option<String>,
pub healthy: bool,
pub phase: ReplicaPhase,
pub snapshot: Option<Snapshot>,
}Expand description
Fields§
§handle: InstanceHandleThe replica’s handle.
node: u64The node it runs on (for Zero, the node holding its snapshot — restore
is same-node until live migration lands).
backend: StringThe backend that runs it.
endpoint: EndpointThe endpoint the gateway routes to (the last-known endpoint while Zero).
region: Option<String>The region of the node this replica runs on, denormalized from
Node::region at launch so the gateway’s nearest-replica LB (FA-8) can
tag the replica’s endpoint without a node lookup. #[serde(default)] keeps
older records (no field) deserializing — schema stays v1.
healthy: boolWhether the last health check passed (always false while Zero).
phase: ReplicaPhaseLifecycle phase. #[serde(default)] keeps older records (no field)
deserializing as Running — schema stays v1.
snapshot: Option<Snapshot>The snapshot to restore from — Some iff phase == Zero.
Trait Implementations§
Source§impl Clone for ObservedInstance
impl Clone for ObservedInstance
Source§fn clone(&self) -> ObservedInstance
fn clone(&self) -> ObservedInstance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObservedInstance
impl Debug for ObservedInstance
Source§impl<'de> Deserialize<'de> for ObservedInstance
impl<'de> Deserialize<'de> for ObservedInstance
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
impl Eq for ObservedInstance
Source§impl PartialEq for ObservedInstance
impl PartialEq for ObservedInstance
Source§impl Serialize for ObservedInstance
impl Serialize for ObservedInstance
impl StructuralPartialEq for ObservedInstance
Auto Trait Implementations§
impl Freeze for ObservedInstance
impl RefUnwindSafe for ObservedInstance
impl Send for ObservedInstance
impl Sync for ObservedInstance
impl Unpin for ObservedInstance
impl UnsafeUnpin for ObservedInstance
impl UnwindSafe for ObservedInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.