[−][src]Struct ichen_openprotocol::Controller
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: &'a strUser-specified human-friendly name for the machine.
controller_type: &'a strversion: &'a strVersion of the controller's firmware.
model: &'a strMachine model.
address: &'a strAddress 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: HashMap<&'a str, f64>Last set of cycle data (if any) received from the controller.
variables: 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]
pub fn validate(&self) -> Result<'a, ()>[src]
Validate the data structure.
Errors
Returns Err(OpenProtocolError) if there are any errors or inconsistencies.
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> Unpin for Controller<'a>
impl<'a> Send for Controller<'a>
impl<'a> UnwindSafe for Controller<'a>
impl<'a> RefUnwindSafe for Controller<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for 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> 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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,