pub struct PlcConfig {
pub name: String,
pub path: String,
pub tag_cache_file: Option<PathBuf>,
pub mock_tags: Option<PathBuf>,
pub rules: Vec<Map<String, Value>>,
pub groups: Vec<Map<String, Value>>,
pub udt: Map<String, Value>,
pub tags: Map<String, Value>,
}Expand description
One [plc.NAME] table.
Fields§
§name: StringThe PLC’s name in the config, the <plc> of qualified tag names.
path: StringA ciplink path, e.g. "10.0.0.5" or "10.0.0.5/1/3".
tag_cache_file: Option<PathBuf>Optional tag cache file for fast restarts.
Optional mock tags file, used only with --mock.
rules: Vec<Map<String, Value>>[[plc.X.rule]] tables in file order.
groups: Vec<Map<String, Value>>[[plc.X.group]] tables: name, rate_ms, match.
udt: Map<String, Value>[plc.X.udt.UDT] tables: member -> entry.
[plc.X.tags]: tag path -> entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlcConfig
impl RefUnwindSafe for PlcConfig
impl Send for PlcConfig
impl Sync for PlcConfig
impl Unpin for PlcConfig
impl UnsafeUnpin for PlcConfig
impl UnwindSafe for PlcConfig
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