pub struct Rules { /* private fields */ }Expand description
The resolvers of every PLC in a Config, memoized; set_types clears the memo.
Implementations§
Source§impl Rules
impl Rules
Sourcepub fn new(config: &Config) -> Result<Self, String>
pub fn new(config: &Config) -> Result<Self, String>
The rules of every PLC of the config (already checked by parse_config).
Sourcepub fn set_types(&self, plc: &str, tag_list: &[Json], types: &Map<String, Json>)
pub fn set_types(&self, plc: &str, tag_list: &[Json], types: &Map<String, Json>)
The PLC’s controller structure, after a connect or a tag table reload.
Sourcepub fn resolve(&self, plc: &str, tag: &str) -> String
pub fn resolve(&self, plc: &str, tag: &str) -> String
A bit name X.EStop as X.<n> from the bits of X; anything else unchanged.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnsafeUnpin for Rules
impl UnwindSafe for Rules
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