pub struct TaskStatus {Show 22 fields
pub echo_serial_number: i32,
pub state: i32,
pub task_mode: i32,
pub task_state: i32,
pub exec_state: i32,
pub interp_state: i32,
pub call_level: i32,
pub read_line: i32,
pub motion_line: i32,
pub current_line: i32,
pub file: String,
pub command: String,
pub program_units: i32,
pub interpreter_errcode: i32,
pub optional_stop: bool,
pub block_delete: bool,
pub task_paused: i32,
pub input_timeout: bool,
pub rotation_xy: f64,
pub ini_filename: String,
pub delay_left: f64,
pub queued_mdi_commands: i32,
}Expand description
Task status information
Fields§
§echo_serial_number: i32§state: i32§task_mode: i32§task_state: i32§exec_state: i32§interp_state: i32§call_level: i32§read_line: i32§motion_line: i32§current_line: i32§file: String§command: String§program_units: i321=inch, 2=mm, 3=cm
interpreter_errcode: i32§optional_stop: bool§block_delete: bool§task_paused: i32§input_timeout: bool§rotation_xy: f64§ini_filename: String§delay_left: f64§queued_mdi_commands: i32Implementations§
Source§impl TaskStatus
impl TaskStatus
Sourcepub fn state(&self) -> RcsStatus
pub fn state(&self) -> RcsStatus
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn task_mode(&self) -> TaskMode
pub fn task_mode(&self) -> TaskMode
Returns the enum value of task_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_task_mode(&mut self, value: TaskMode)
pub fn set_task_mode(&mut self, value: TaskMode)
Sets task_mode to the provided enum value.
Sourcepub fn task_state(&self) -> TaskState
pub fn task_state(&self) -> TaskState
Returns the enum value of task_state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_task_state(&mut self, value: TaskState)
pub fn set_task_state(&mut self, value: TaskState)
Sets task_state to the provided enum value.
Sourcepub fn exec_state(&self) -> ExecState
pub fn exec_state(&self) -> ExecState
Returns the enum value of exec_state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_exec_state(&mut self, value: ExecState)
pub fn set_exec_state(&mut self, value: ExecState)
Sets exec_state to the provided enum value.
Sourcepub fn interp_state(&self) -> InterpState
pub fn interp_state(&self) -> InterpState
Returns the enum value of interp_state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_interp_state(&mut self, value: InterpState)
pub fn set_interp_state(&mut self, value: InterpState)
Sets interp_state to the provided enum value.
Trait Implementations§
Source§impl Clone for TaskStatus
impl Clone for TaskStatus
Source§fn clone(&self) -> TaskStatus
fn clone(&self) -> TaskStatus
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 TaskStatus
impl Debug for TaskStatus
Source§impl Default for TaskStatus
impl Default for TaskStatus
Source§impl Message for TaskStatus
impl Message for TaskStatus
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 TaskStatus
impl PartialEq for TaskStatus
impl StructuralPartialEq for TaskStatus
Auto Trait Implementations§
impl Freeze for TaskStatus
impl RefUnwindSafe for TaskStatus
impl Send for TaskStatus
impl Sync for TaskStatus
impl Unpin for TaskStatus
impl UnsafeUnpin for TaskStatus
impl UnwindSafe for TaskStatus
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,
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>
Wrap the input message
T in a tonic::Request