pub enum SerialInterfaceError {
Show 19 variants
CannotListPorts,
StopToChangeSettings,
DisconnectToChangeSettings,
CannotReadPort(Option<String>),
WrongReadArguments,
CannotOpenPort(String),
PortNotOpened,
SlaveModeNeedModbusID,
PortAlreadyOpen,
PortNeededToOpenPort,
SilenceMissing,
PathMissing,
NoPortToClose,
CannotSendMessage,
WrongMode,
CannotWritePort,
StopModeBeforeChange,
WaitingForResponse,
CannotSetTimeout,
}
Variants§
CannotListPorts
StopToChangeSettings
DisconnectToChangeSettings
CannotReadPort(Option<String>)
WrongReadArguments
CannotOpenPort(String)
PortNotOpened
SlaveModeNeedModbusID
PortAlreadyOpen
PortNeededToOpenPort
SilenceMissing
PathMissing
NoPortToClose
CannotSendMessage
WrongMode
CannotWritePort
StopModeBeforeChange
WaitingForResponse
CannotSetTimeout
Trait Implementations§
Source§impl Clone for SerialInterfaceError
impl Clone for SerialInterfaceError
Source§fn clone(&self) -> SerialInterfaceError
fn clone(&self) -> SerialInterfaceError
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 moreAuto Trait Implementations§
impl Freeze for SerialInterfaceError
impl RefUnwindSafe for SerialInterfaceError
impl Send for SerialInterfaceError
impl Sync for SerialInterfaceError
impl Unpin for SerialInterfaceError
impl UnwindSafe for SerialInterfaceError
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