#[non_exhaustive]pub enum ReadError {
Show 17 variants
ArrayTypeMismatch,
InvalidArray,
TooManyNodes,
ChannelChanged,
SessionInterrupted,
ServerIdentity,
InvalidServerMetadata,
InvalidReadLimit,
InvalidDataType,
InvalidValueRank,
InvalidUnitReference,
UnitAliasesSignal,
InvalidUnitProperty,
UnknownNamespace {
index: usize,
},
ScalarTypeMismatch {
expected: &'static str,
},
DateTimeRange,
Service(StatusCode),
}Expand description
A service, identity, or scalar-decoding error. Each successful result carries its node status.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ArrayTypeMismatch
The Value is a scalar or an array of a different built-in type.
InvalidArray
Invalid dimensions or array size exceeds the client limits.
TooManyNodes
Batch exceeds the client read limit.
ChannelChanged
Cannot use this connection’s mapping after a channel change.
SessionInterrupted
A previous service request failed or its future was cancelled after dispatch.
ServerIdentity
The authenticated server reported a different application identity.
InvalidServerMetadata
The server did not supply usable, unambiguous namespace metadata.
InvalidReadLimit
The server advertised a read limit with the wrong type or rank.
InvalidDataType
A returned DataType identifier is invalid or its namespace is absent from the session.
InvalidValueRank
The server supplied an Int32 outside the OPC UA ValueRank range.
InvalidUnitReference
The property lookup was incomplete, ambiguous, remote, or inconsistent.
UnitAliasesSignal
A resolved unit property would read a signal protected by the capture contract.
InvalidUnitProperty
A property declaration or a Good property value does not match scalar EUInformation.
UnknownNamespace
The selected namespace is absent in the session.
ScalarTypeMismatch
A present Good value has a different OPC UA type or is an array.
DateTimeRange
DateTime cannot be represented in the supported Rust calendar range.
Service(StatusCode)
The underlying OPC UA service failed.
Trait Implementations§
Source§impl Error for ReadError
impl Error for ReadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()