pub struct MockPlc { /* private fields */ }Expand description
The mock driver of one PLC.
Implementations§
Trait Implementations§
Source§impl Plc for MockPlc
impl Plc for MockPlc
Source§fn read(&mut self, tags: &[&str]) -> Result<Vec<TagResult>, String>
fn read(&mut self, tags: &[&str]) -> Result<Vec<TagResult>, String>
Reads tags in one call, one result per tag in order.
Source§fn write(&mut self, tag: &str, value: &Value) -> Result<TagResult, String>
fn write(&mut self, tag: &str, value: &Value) -> Result<TagResult, String>
Writes one tag; a value that doesn’t fit is the result’s
bad_value error, nothing sent.Source§fn catalog(&mut self) -> Catalog
fn catalog(&mut self) -> Catalog
The controller structure, after a connect and after the tag table version changed.
Source§fn version(&mut self) -> Json
fn version(&mut self) -> Json
The tag table version (null when unknown); it changes after an online edit or a download.
Source§fn connection_size(&self) -> usize
fn connection_size(&self) -> usize
Request and reply bytes per packet.
Auto Trait Implementations§
impl Freeze for MockPlc
impl RefUnwindSafe for MockPlc
impl Send for MockPlc
impl Sync for MockPlc
impl Unpin for MockPlc
impl UnsafeUnpin for MockPlc
impl UnwindSafe for MockPlc
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