pub struct Controller<'a> {Show 15 fields
pub controller_id: ID,
pub display_name: TextName<'a>,
pub controller_type: TextID<'a>,
pub version: TextID<'a>,
pub model: TextID<'a>,
pub address: Address<'a>,
pub geo_location: Option<GeoLocation>,
pub op_mode: OpMode,
pub job_mode: JobMode,
pub last_cycle_data: IndexMap<TextID<'a>, R32>,
pub variables: IndexMap<TextID<'a>, R32>,
pub last_connection_time: Option<DateTime<FixedOffset>>,
pub operator: Option<Operator<'a>>,
pub job_card_id: Option<Box<Cow<'a, str>>>,
pub mold_id: Option<Box<Cow<'a, str>>>,
}Expand description
A data structure containing the current known status of a controller.
Fields§
§controller_id: IDUnique ID of the controller, which cannot be zero.
display_name: TextName<'a>User-specified human-friendly name for the machine.
controller_type: TextID<'a>§version: TextID<'a>Version of the controller’s firmware.
model: TextID<'a>Machine model.
address: Address<'a>Address of the controller.
For a network-connected controller, this is usually the IP address and port, in the format x.x.x.x:port.
For a serial-connected controller, this is usually the serial port device name, such as COM1, ttyS0.
geo_location: Option<GeoLocation>Physical geo-location of the controller (if any).
op_mode: OpModeCurrent operating mode of the controller.
job_mode: JobModeCurrent job mode of the controller.
last_cycle_data: IndexMap<TextID<'a>, R32>Last set of cycle data (if any) received from the controller.
variables: IndexMap<TextID<'a>, R32>Last-known states (if any) of controller variables.
last_connection_time: Option<DateTime<FixedOffset>>Time of last connection.
operator: Option<Operator<'a>>Current logged-in user (if any) on the controller
job_card_id: Option<Box<Cow<'a, str>>>Active job ID (if any) on the controller.
mold_id: Option<Box<Cow<'a, str>>>ID of the set of mold data currently loaded (if any) on the controller.
Trait Implementations§
Source§impl<'a> Clone for Controller<'a>
impl<'a> Clone for Controller<'a>
Source§fn clone(&self) -> Controller<'a>
fn clone(&self) -> Controller<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more