Enum sawp_modbus::ExceptionCode
source · #[repr(u8)]
pub enum ExceptionCode {
IllegalFunction,
IllegalDataAddr,
IllegalDataValue,
ServerDeviceFail,
Ack,
ServerDeviceBusy,
NegAck,
MemParityErr,
GatewayPathUnavailable,
GatewayTargetFailToResp,
Unknown,
}
Expand description
Exception code names as stated in the protocol reference
Variants§
IllegalFunction
IllegalDataAddr
IllegalDataValue
ServerDeviceFail
Ack
ServerDeviceBusy
NegAck
MemParityErr
GatewayTargetFailToResp
Unknown
Trait Implementations§
source§impl Clone for ExceptionCode
impl Clone for ExceptionCode
source§fn clone(&self) -> ExceptionCode
fn clone(&self) -> ExceptionCode
Returns a copy 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 ExceptionCode
impl Debug for ExceptionCode
source§impl Display for ExceptionCode
impl Display for ExceptionCode
source§impl PartialEq<ExceptionCode> for ExceptionCode
impl PartialEq<ExceptionCode> for ExceptionCode
source§fn eq(&self, other: &ExceptionCode) -> bool
fn eq(&self, other: &ExceptionCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for ExceptionCode
impl TryFrom<u8> for ExceptionCode
§type Error = TryFromPrimitiveError<ExceptionCode>
type Error = TryFromPrimitiveError<ExceptionCode>
The type returned in the event of a conversion error.