pub enum InputError {
Show 22 variants
PortalError(String),
ScancodeTranslationFailed(String),
UnknownScancode(u16),
UnknownKeycode(u32),
CoordinateTransformError(String),
MonitorNotFound(u32),
InvalidCoordinate(f64, f64),
InvalidMonitorConfig(String),
LayoutError(String),
LayoutNotFound(String),
XkbError(String),
EventQueueFull,
EventSendFailed,
EventReceiveFailed,
LatencyTooHigh(u64, u64),
InvalidState(String),
PortalSessionError(String),
DBusError(String),
Io(Error),
InvalidKeyEvent(String),
InvalidMouseEvent(String),
Unknown(String),
}Expand description
Input module error types
Variants§
PortalError(String)
Portal remote desktop error
ScancodeTranslationFailed(String)
Scancode translation error
UnknownScancode(u16)
Unknown scancode
UnknownKeycode(u32)
Unknown keycode
CoordinateTransformError(String)
Coordinate transformation error
MonitorNotFound(u32)
Monitor not found
InvalidCoordinate(f64, f64)
Invalid coordinate
InvalidMonitorConfig(String)
Invalid monitor configuration
LayoutError(String)
Layout error
LayoutNotFound(String)
Layout not found
XkbError(String)
XKB error
EventQueueFull
Event queue full
EventSendFailed
Event send error
EventReceiveFailed
Event receive error
LatencyTooHigh(u64, u64)
Input latency too high
InvalidState(String)
Invalid state
PortalSessionError(String)
Portal session error
DBusError(String)
DBus error
Io(Error)
IO error
InvalidKeyEvent(String)
Invalid key event
InvalidMouseEvent(String)
Invalid mouse event
Unknown(String)
Unknown error
Trait Implementations§
Source§impl Debug for InputError
impl Debug for InputError
Source§impl Display for InputError
impl Display for InputError
Source§impl Error for InputError
impl Error for InputError
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§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 InputError
impl !RefUnwindSafe for InputError
impl Send for InputError
impl Sync for InputError
impl Unpin for InputError
impl !UnwindSafe for InputError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more