pub enum BatchOperation {
Read {
tag_name: String,
},
Write {
tag_name: String,
value: PlcValue,
},
}
Expand description
Represents a single operation in a batch request
This enum defines the different types of operations that can be performed in a batch. Each operation specifies whether it’s a read or write operation and includes the necessary parameters.
Variants§
Read
Write
Write operation for a specific tag with a value
§Fields
tag_name
- The name of the tag to writevalue
- The value to write to the tag
Trait Implementations§
Source§impl Clone for BatchOperation
impl Clone for BatchOperation
Source§fn clone(&self) -> BatchOperation
fn clone(&self) -> BatchOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BatchOperation
impl RefUnwindSafe for BatchOperation
impl Send for BatchOperation
impl Sync for BatchOperation
impl Unpin for BatchOperation
impl UnwindSafe for BatchOperation
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