pub enum Warning {
TransactionIdMismatch {
expected: u16,
got: u16,
},
}Expand description
Non-fatal protocol anomaly detected during a request/response cycle.
Returned inside BridgeEvent::Warning by
Connection::next. The connection remains open
after a warning — the response was still forwarded to the TCP client.
Variants§
TransactionIdMismatch
The transaction ID in the TCP response did not match the one sent in the request. The response was forwarded using the server’s actual transaction ID as a fallback.
This can occur with upstream servers or RTU devices that echo back stale or incorrect transaction IDs. It is safe to continue after this warning.
Trait Implementations§
impl Copy for Warning
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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