pub enum Error<Io> {
Io(Io),
UnexpectedEof,
Crc(CrcError),
UnexpectedResponse,
}Expand description
Errors that can occur when talking to a Modbus server.
Variants§
Io(Io)
IO error.
UnexpectedEof
Unexpected end of file when reading.
Crc(CrcError)
Invalid CRC checksum.
UnexpectedResponse
Unexpected response from the Modbus server.
Trait Implementations§
Source§impl<E> From<ReadExactError<E>> for Error<E>
impl<E> From<ReadExactError<E>> for Error<E>
Source§fn from(e: ReadExactError<E>) -> Self
fn from(e: ReadExactError<E>) -> Self
Converts to this type from the input type.
Source§impl<E> From<ValidationError> for Error<E>
impl<E> From<ValidationError> for Error<E>
Source§fn from(e: ValidationError) -> Self
fn from(e: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Io> Freeze for Error<Io>where
Io: Freeze,
impl<Io> RefUnwindSafe for Error<Io>where
Io: RefUnwindSafe,
impl<Io> Send for Error<Io>where
Io: Send,
impl<Io> Sync for Error<Io>where
Io: Sync,
impl<Io> Unpin for Error<Io>where
Io: Unpin,
impl<Io> UnwindSafe for Error<Io>where
Io: UnwindSafe,
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