pub enum UdtError {
Protocol(String),
TagNotFound(String),
DataTypeMismatch {
expected: String,
actual: String,
},
}Expand description
Error returned while parsing or converting a UDT.
Variants§
Protocol(String)
The PLC response or UDT payload is malformed.
TagNotFound(String)
The requested tag was not found.
DataTypeMismatch
A member value has a different type than its definition.
Implementations§
Trait Implementations§
impl Eq for UdtError
Source§impl Error for UdtError
impl Error for UdtError
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()
Source§impl From<UdtError> for EtherNetIpError
impl From<UdtError> for EtherNetIpError
impl StructuralPartialEq for UdtError
Auto Trait Implementations§
impl Freeze for UdtError
impl RefUnwindSafe for UdtError
impl Send for UdtError
impl Sync for UdtError
impl Unpin for UdtError
impl UnsafeUnpin for UdtError
impl UnwindSafe for UdtError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.