Enum modbus_rtu::packet::RequestError
source · pub enum RequestError {
IllegalBroadcasting,
MemoryAddressExceed,
ReadQuantityTooBig,
WriteQuantityTooBig,
}Expand description
§RequestError
Errors that may occur when generating a Modbus RTU request packet.
Variants§
IllegalBroadcasting
§IllegalBroadcasting
This error occurs when attempting to broadcast with functions that are not write-only.
MemoryAddressExceed
§MemoryAddressExceed
This error occurs when attempting to access addresses beyond 0xFFFF.
ReadQuantityTooBig
§ReadQuantityTooBig
This error occurs when attempting to read more memory than allowed from the slave at once.
WriteQuantityTooBig
§WriteQuantityTooBig
This error occurs when attempting to write more memory than allowed to the slave at once.
Trait Implementations§
source§impl Debug for RequestError
impl Debug for RequestError
Auto Trait Implementations§
impl Freeze for RequestError
impl RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnwindSafe for RequestError
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