pub enum EvdevError {
Scan {
message: String,
},
Open {
path: PathBuf,
message: String,
},
Read {
path: PathBuf,
message: String,
},
}Expand description
What went wrong reading evdev. Each variant carries the OS error’s text.
Variants§
Scan
/dev/input could not be listed, so no new pad can be found. Open pads
were still read.
Open
A node opened but could not be probed, or failed to open for a reason other than permission or its having gone. It is tried again at the next scan.
Read
Reading an open pad failed with something other than ENODEV. The pad
was reported as disconnected; its node is found again at a later scan
if it is still there.
Trait Implementations§
Source§impl Clone for EvdevError
impl Clone for EvdevError
Source§impl Debug for EvdevError
impl Debug for EvdevError
Source§impl Display for EvdevError
impl Display for EvdevError
impl Eq for EvdevError
Source§impl Error for EvdevError
impl Error for EvdevError
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 PartialEq for EvdevError
impl PartialEq for EvdevError
impl StructuralPartialEq for EvdevError
Auto Trait Implementations§
impl Freeze for EvdevError
impl RefUnwindSafe for EvdevError
impl Send for EvdevError
impl Sync for EvdevError
impl Unpin for EvdevError
impl UnsafeUnpin for EvdevError
impl UnwindSafe for EvdevError
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