pub enum SimulateError {
SendInput,
InvalidRawKey {
expected: String,
got: Option<String>,
},
GetCodes,
IntConversion(TryFromIntError),
NoDisplay,
NoCode,
NoCorrespondingKey,
}
Expand description
Error simulating an event
Variants§
SendInput
InvalidRawKey
GetCodes
IntConversion(TryFromIntError)
NoDisplay
NoCode
NoCorrespondingKey
Trait Implementations§
Source§impl Debug for SimulateError
impl Debug for SimulateError
Source§impl Display for SimulateError
impl Display for SimulateError
Source§impl Error for SimulateError
impl Error for SimulateError
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<SimulateError> for GrabError
impl From<SimulateError> for GrabError
Source§fn from(source: SimulateError) -> Self
fn from(source: SimulateError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for SimulateError
impl From<TryFromIntError> for SimulateError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SimulateError
impl RefUnwindSafe for SimulateError
impl Send for SimulateError
impl Sync for SimulateError
impl Unpin for SimulateError
impl UnwindSafe for SimulateError
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