[−][src]Struct ichen_openprotocol::Controller
A data structure containing the current known status of a controller.
Fields
controller_id: ID
Unique 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: OpMode
Current operating mode of the controller.
job_mode: JobMode
Current 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
impl<'a> Clone for Controller<'a>
[src]
fn clone(&self) -> Controller<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for Controller<'a>
[src]
impl<'_> Default for Controller<'_>
[src]
fn default() -> Self
[src]
Default value for Controller
.
controller_id
is set to 1 because zero is not allowed.
All other fields are set to Unknown
or empty.
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>,
impl<'a> Serialize for Controller<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Controller<'a>
impl<'a> Send for Controller<'a>
impl<'a> Sync for Controller<'a>
impl<'a> Unpin for Controller<'a>
impl<'a> UnwindSafe for Controller<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,