pub enum FaultType {
Exception,
Delay,
Timeout,
Corrupt,
}Expand description
Fault type.
Variants§
Exception
Return an exception response.
Delay
Add artificial latency.
Timeout
Drop the response entirely (simulate timeout).
Corrupt
Corrupt CRC (RTU only).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FaultType
impl<'de> Deserialize<'de> for FaultType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FaultType
impl RefUnwindSafe for FaultType
impl Send for FaultType
impl Sync for FaultType
impl Unpin for FaultType
impl UnsafeUnpin for FaultType
impl UnwindSafe for FaultType
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