Enum rodbus::InvalidRange
source · Expand description
Errors that can be produced when validating start/count
Variants§
CountOfZero
Count of zero not allowed
AddressOverflow(u16, u16)
Address in range overflows u16
CountTooLargeForType(u16, u16)
Count too large for type
Trait Implementations§
source§impl Clone for InvalidRange
impl Clone for InvalidRange
source§fn clone(&self) -> InvalidRange
fn clone(&self) -> InvalidRange
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 InvalidRange
impl Debug for InvalidRange
source§impl Display for InvalidRange
impl Display for InvalidRange
source§impl From<InvalidRange> for InvalidRequest
impl From<InvalidRange> for InvalidRequest
source§fn from(x: InvalidRange) -> Self
fn from(x: InvalidRange) -> Self
Converts to this type from the input type.
source§impl From<InvalidRange> for RequestError
impl From<InvalidRange> for RequestError
source§fn from(x: InvalidRange) -> Self
fn from(x: InvalidRange) -> Self
Converts to this type from the input type.
source§impl PartialEq<InvalidRange> for InvalidRange
impl PartialEq<InvalidRange> for InvalidRange
source§fn eq(&self, other: &InvalidRange) -> bool
fn eq(&self, other: &InvalidRange) -> bool
This method tests for
self and other values to be equal, and is used
by ==.