pub enum SerialError {
}Expand description
串口错误
Variants§
OpenFailed(String)
串口打开失败
PortClosed
串口已关闭
ReadError(String)
读取错误
WriteError(String)
写入错误
Timeout
超时
ConfigError(String)
配置错误
PortNotFound(String)
串口不存在
PermissionDenied(String)
权限错误
PortBusy(String)
串口忙
IoError(String)
IO 错误
FrameError
帧错误
OverflowError
溢出错误
ParityError
校验错误
Internal(String)
内部错误
Trait Implementations§
Source§impl Debug for SerialError
impl Debug for SerialError
Source§impl Display for SerialError
impl Display for SerialError
Source§impl Error for SerialError
impl Error for SerialError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for SerialError
impl From<Error> for SerialError
Auto Trait Implementations§
impl Freeze for SerialError
impl RefUnwindSafe for SerialError
impl Send for SerialError
impl Sync for SerialError
impl Unpin for SerialError
impl UnwindSafe for SerialError
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