pub enum VirtualSerialError {
Io(Error),
PtyCreation(String),
Symlink {
path: PathBuf,
source: Error,
},
NotAvailable,
InUse(PathBuf),
}Expand description
Virtual serial port errors.
Variants§
Io(Error)
I/O error.
PtyCreation(String)
PTY creation failed.
Symlink
Symlink creation failed.
NotAvailable
Port not available.
InUse(PathBuf)
Port already in use.
Trait Implementations§
Source§impl Debug for VirtualSerialError
impl Debug for VirtualSerialError
Source§impl Display for VirtualSerialError
impl Display for VirtualSerialError
Source§impl Error for VirtualSerialError
impl Error for VirtualSerialError
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()
Auto Trait Implementations§
impl Freeze for VirtualSerialError
impl !RefUnwindSafe for VirtualSerialError
impl Send for VirtualSerialError
impl Sync for VirtualSerialError
impl Unpin for VirtualSerialError
impl UnsafeUnpin for VirtualSerialError
impl !UnwindSafe for VirtualSerialError
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