[−][src]Struct ichen_openprotocol::Controller
A data structure containing the current known status of a controller.
Fields
controller_id: NonZeroU32
Unique ID of the controller, which cannot be zero.
display_name: &'a str
User-specified human-friendly name for the machine.
controller_type: &'a str
version: &'a str
Version of the controller's firmware.
model: &'a str
Machine model.
address: &'a str
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: OpMode
Current operating mode of the controller.
job_mode: JobMode
Current job mode of the controller.
last_cycle_data: Option<HashMap<&'a str, f64>>
Last set of cycle data (if any) received from the controller.
variables: Option<HashMap<&'a str, f64>>
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<Cow<'a, str>>
Active job ID (if any) on the controller.
mold_id: Option<Cow<'a, str>>
ID of the set of mold data currently loaded (if any) on the controller.
Methods
impl<'a> Controller<'a>
[src]
Trait Implementations
impl<'_> Default for Controller<'_>
[src]
impl<'a> PartialEq<Controller<'a>> for Controller<'a>
[src]
fn eq(&self, other: &Controller<'a>) -> bool
[src]
fn ne(&self, other: &Controller<'a>) -> bool
[src]
impl<'a> Debug for Controller<'a>
[src]
impl<'a> Serialize for Controller<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de: 'a, 'a> Deserialize<'de> for Controller<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<'a> Sync for Controller<'a>
impl<'a> Send for Controller<'a>
impl<'a> Unpin for Controller<'a>
impl<'a> RefUnwindSafe for Controller<'a>
impl<'a> UnwindSafe for Controller<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,