pub enum BatchError {
TagNotFound(String),
DataTypeMismatch {
expected: String,
actual: String,
},
NetworkError(String),
CipError {
status: u8,
message: String,
},
TagPathError(String),
SerializationError(String),
Timeout,
Other(String),
}
Expand description
Specific error types that can occur during batch operations
This enum provides detailed error information for batch operations, allowing for better error handling and diagnostics.
Variants§
TagNotFound(String)
Tag was not found in the PLC
DataTypeMismatch
Data type mismatch between expected and actual
NetworkError(String)
Network communication error
CipError
CIP protocol error with status code
TagPathError(String)
Tag name parsing error
SerializationError(String)
Value serialization/deserialization error
Timeout
Operation timeout
Other(String)
Generic error for unexpected issues
Trait Implementations§
Source§impl Clone for BatchError
impl Clone for BatchError
Source§fn clone(&self) -> BatchError
fn clone(&self) -> BatchError
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 moreSource§impl Debug for BatchError
impl Debug for BatchError
Source§impl Display for BatchError
impl Display for BatchError
Source§impl Error for BatchError
impl Error for BatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BatchError
impl RefUnwindSafe for BatchError
impl Send for BatchError
impl Sync for BatchError
impl Unpin for BatchError
impl UnwindSafe for BatchError
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