Enum rodbus::InternalError
source · pub enum InternalError {
InsufficientWriteSpace(usize, usize),
FrameTooBig(usize, usize),
InsufficientBytesForRead(usize, usize),
BadSeekOperation,
BadByteCount(usize),
}Expand description
Errors that indicate faulty logic in the library itself if they occur
Variants§
InsufficientWriteSpace(usize, usize)
Insufficient space for write operation
FrameTooBig(usize, usize)
The calculated frame size exceeds what is allowed by the spec
InsufficientBytesForRead(usize, usize)
Attempted to read more bytes than present
BadSeekOperation
Cursor seek operation exceeded the bounds of the underlying buffer
BadByteCount(usize)
Byte count would exceed maximum allowed size in the ADU of u8
Trait Implementations§
source§impl Clone for InternalError
impl Clone for InternalError
source§fn clone(&self) -> InternalError
fn clone(&self) -> InternalError
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 InternalError
impl Debug for InternalError
source§impl Display for InternalError
impl Display for InternalError
source§impl Error for InternalError
impl Error for InternalError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<InternalError> for RequestError
impl From<InternalError> for RequestError
source§fn from(err: InternalError) -> Self
fn from(err: InternalError) -> Self
Converts to this type from the input type.
source§impl PartialEq<InternalError> for InternalError
impl PartialEq<InternalError> for InternalError
source§fn eq(&self, other: &InternalError) -> bool
fn eq(&self, other: &InternalError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.