pub struct StagePreparationStatus {Show 19 fields
pub topology_id: String,
pub run_id: String,
pub model_id: String,
pub backend: String,
pub package_ref: String,
pub manifest_sha256: String,
pub stage_id: String,
pub stage_index: u32,
pub layer_start: u32,
pub layer_end: u32,
pub state: i32,
pub bytes_done: Option<u64>,
pub bytes_total: Option<u64>,
pub bind_addr: Option<String>,
pub error: Option<String>,
pub shutdown_generation: u64,
pub coordinator_term: u64,
pub coordinator_id: Option<String>,
pub lease_until_unix_ms: u64,
}Fields§
§topology_id: String§run_id: String§model_id: String§backend: String§package_ref: String§manifest_sha256: String§stage_id: String§stage_index: u32§layer_start: u32§layer_end: u32§state: i32§bytes_done: Option<u64>§bytes_total: Option<u64>§bind_addr: Option<String>§error: Option<String>§shutdown_generation: u64§coordinator_term: u64§coordinator_id: Option<String>§lease_until_unix_ms: u64Implementations§
Source§impl StagePreparationStatus
impl StagePreparationStatus
Sourcepub fn state(&self) -> StagePreparationState
pub fn state(&self) -> StagePreparationState
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: StagePreparationState)
pub fn set_state(&mut self, value: StagePreparationState)
Sets state to the provided enum value.
Sourcepub fn bytes_done(&self) -> u64
pub fn bytes_done(&self) -> u64
Returns the value of bytes_done, or the default value if bytes_done is unset.
Sourcepub fn bytes_total(&self) -> u64
pub fn bytes_total(&self) -> u64
Returns the value of bytes_total, or the default value if bytes_total is unset.
Sourcepub fn bind_addr(&self) -> &str
pub fn bind_addr(&self) -> &str
Returns the value of bind_addr, or the default value if bind_addr is unset.
Sourcepub fn error(&self) -> &str
pub fn error(&self) -> &str
Returns the value of error, or the default value if error is unset.
Sourcepub fn coordinator_id(&self) -> &str
pub fn coordinator_id(&self) -> &str
Returns the value of coordinator_id, or the default value if coordinator_id is unset.
Trait Implementations§
Source§impl Clone for StagePreparationStatus
impl Clone for StagePreparationStatus
Source§fn clone(&self) -> StagePreparationStatus
fn clone(&self) -> StagePreparationStatus
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 StagePreparationStatus
impl Debug for StagePreparationStatus
Source§impl Default for StagePreparationStatus
impl Default for StagePreparationStatus
impl Eq for StagePreparationStatus
Source§impl Hash for StagePreparationStatus
impl Hash for StagePreparationStatus
Source§impl Message for StagePreparationStatus
impl Message for StagePreparationStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for StagePreparationStatus
impl PartialEq for StagePreparationStatus
impl StructuralPartialEq for StagePreparationStatus
Auto Trait Implementations§
impl Freeze for StagePreparationStatus
impl RefUnwindSafe for StagePreparationStatus
impl Send for StagePreparationStatus
impl Sync for StagePreparationStatus
impl Unpin for StagePreparationStatus
impl UnsafeUnpin for StagePreparationStatus
impl UnwindSafe for StagePreparationStatus
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