pub struct SourceInstanceRef {
pub mx_source_id: String,
pub worker_id: String,
pub model_name: String,
pub worker_rank: u32,
pub accelerator: String,
pub updated_at: i64,
pub training_step: Option<u64>,
pub layout_signature: Option<String>,
}Expand description
Reference to one worker in one available source instance (lightweight — no tensor metadata). One entry is emitted per worker, so clients can match on worker_rank without calling GetMetadata.
Fields§
§mx_source_id: StringComputed 16-char hex source ID
worker_id: StringUnique identifier for this running instance
model_name: StringHuman-readable model name
worker_rank: u32Global rank of this worker within the instance. Clients filter on this field to find a peer with a matching rank.
accelerator: StringRuntime accelerator family for compatibility filtering (e.g. “cuda”). Lets clients drop incompatible sources before GetMetadata and before the retry-cap slice. Empty means unknown (treated as compatible for rolling upgrades and sources that predate this field).
updated_at: i64Timestamp of the worker’s last status update (unix milliseconds). Zero means unknown for records created by older servers/backends.
training_step: Option<u64>Training step/version lifted from SourceIdentity.extra_parameters. Presence matters: an absent value must not be interpreted as step zero.
layout_signature: Option<String>Stable digest of topology, tensor registry, and translation metadata. Unlike training_step this remains constant across versions and changes whenever cached layout metadata must be rebuilt.
Implementations§
Source§impl SourceInstanceRef
impl SourceInstanceRef
Sourcepub fn training_step(&self) -> u64
pub fn training_step(&self) -> u64
Returns the value of training_step, or the default value if training_step is unset.
Sourcepub fn layout_signature(&self) -> &str
pub fn layout_signature(&self) -> &str
Returns the value of layout_signature, or the default value if layout_signature is unset.
Trait Implementations§
Source§impl Clone for SourceInstanceRef
impl Clone for SourceInstanceRef
Source§fn clone(&self) -> SourceInstanceRef
fn clone(&self) -> SourceInstanceRef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceInstanceRef
impl Debug for SourceInstanceRef
Source§impl Default for SourceInstanceRef
impl Default for SourceInstanceRef
Source§impl Message for SourceInstanceRef
impl Message for SourceInstanceRef
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for SourceInstanceRef
impl PartialEq for SourceInstanceRef
impl StructuralPartialEq for SourceInstanceRef
Auto Trait Implementations§
impl Freeze for SourceInstanceRef
impl RefUnwindSafe for SourceInstanceRef
impl Send for SourceInstanceRef
impl Sync for SourceInstanceRef
impl Unpin for SourceInstanceRef
impl UnsafeUnpin for SourceInstanceRef
impl UnwindSafe for SourceInstanceRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§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>
T in a tonic::Request