#[repr(u8)]pub enum ExceptionCode {
IllegalFunction = 1,
IllegalDataAddr = 2,
IllegalDataValue = 3,
ServerDeviceFail = 4,
Ack = 5,
ServerDeviceBusy = 6,
NegAck = 7,
MemParityErr = 8,
GatewayPathUnavailable = 10,
GatewayTargetFailToResp = 11,
Unknown = 12,
}
Expand description
Exception code names as stated in the protocol reference
Variants§
IllegalFunction = 1
IllegalDataAddr = 2
IllegalDataValue = 3
ServerDeviceFail = 4
Ack = 5
ServerDeviceBusy = 6
NegAck = 7
MemParityErr = 8
GatewayTargetFailToResp = 11
Unknown = 12
Trait Implementations§
Source§impl Clone for ExceptionCode
impl Clone for ExceptionCode
Source§fn clone(&self) -> ExceptionCode
fn clone(&self) -> ExceptionCode
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 ExceptionCode
impl Debug for ExceptionCode
Source§impl Display for ExceptionCode
impl Display for ExceptionCode
Source§impl PartialEq for ExceptionCode
impl PartialEq for ExceptionCode
Source§impl TryFrom<u8> for ExceptionCode
impl TryFrom<u8> for ExceptionCode
Source§type Error = TryFromPrimitiveError<ExceptionCode>
type Error = TryFromPrimitiveError<ExceptionCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ExceptionCode
impl TryFromPrimitive for ExceptionCode
impl Copy for ExceptionCode
impl Eq for ExceptionCode
impl StructuralPartialEq for ExceptionCode
Auto Trait Implementations§
impl Freeze for ExceptionCode
impl RefUnwindSafe for ExceptionCode
impl Send for ExceptionCode
impl Sync for ExceptionCode
impl Unpin for ExceptionCode
impl UnwindSafe for ExceptionCode
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