pub struct NodeDescriptor {
pub node_id: NodeId,
pub rpc_address: String,
pub locality: Locality,
pub capacity: NodeCapacity,
pub state: NodeState,
pub version: BuildVersion,
pub version_info: VersionInfo,
}Expand description
One cluster member as advertised by the meta control plane (spec section 12.1). Defined with the Stage 2A bootstrap workflows; the meta group takes ownership of the replicated copy in Stage 3A.
Fields§
§node_id: NodeIdThe member’s node identifier.
rpc_address: StringAdvertised RPC address (host:port).
locality: LocalityOrdered locality tiers (spec section 13.7).
capacity: NodeCapacityAdvertised capacity.
state: NodeStateLifecycle state.
version: BuildVersionAdvertised build version.
version_info: VersionInfoAdvertised version/format compatibility envelope (spec section 11.8).
Deserialized with VersionInfo::default when absent so descriptors
written before Stage 2H still decode; the default’s zeroed ranges
fail closed against any real advertisement (spec section 4.10).
Trait Implementations§
Source§impl Clone for NodeDescriptor
impl Clone for NodeDescriptor
Source§fn clone(&self) -> NodeDescriptor
fn clone(&self) -> NodeDescriptor
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 NodeDescriptor
impl Debug for NodeDescriptor
Source§impl<'de> Deserialize<'de> for NodeDescriptor
impl<'de> Deserialize<'de> for NodeDescriptor
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 NodeDescriptor
Source§impl PartialEq for NodeDescriptor
impl PartialEq for NodeDescriptor
Source§impl Serialize for NodeDescriptor
impl Serialize for NodeDescriptor
impl StructuralPartialEq for NodeDescriptor
Auto Trait Implementations§
impl Freeze for NodeDescriptor
impl RefUnwindSafe for NodeDescriptor
impl Send for NodeDescriptor
impl Sync for NodeDescriptor
impl Unpin for NodeDescriptor
impl UnsafeUnpin for NodeDescriptor
impl UnwindSafe for NodeDescriptor
Blanket Implementations§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request