#[repr(i8)]pub enum Error {
InvalidParameters = -2,
OutOfMem = -3,
HomePressed = 10,
ResetPressed = 11,
PowerPressed = 12,
ParentalOk = 20,
ParentalFail = 21,
BannedInput = 30,
ButtonPressed = 0,
}Expand description
Error returned by an unsuccessful SoftwareKeyboard::launch().
Variants§
InvalidParameters = -2
Invalid parameters given to the SoftwareKeyboard configuration.
OutOfMem = -3
SoftwareKeyboard ran out of memory.
HomePressed = 10
Home button was pressed while SoftwareKeyboard was running.
ResetPressed = 11
Reset button was pressed while SoftwareKeyboard was running.
PowerPressed = 12
Power button was pressed while SoftwareKeyboard was running.
ParentalOk = 20
The parental lock PIN was correct.
This variant should never be returned by normal operations made using this module,
and is listed here only for compatibility purposes.
Refer to the return value of ParentalLock::launch() to confirm the outcome
of the Parental Lock PIN operation.
ParentalFail = 21
The parental lock PIN was incorrect.
Refer to the return value of ParentalLock::launch() to confirm the outcome
of the Parental Lock PIN operation.
BannedInput = 30
Input triggered the filter.
You can have a look at Filters to activate custom filters.
ButtonPressed = 0
An on-screen button was pressed to exit the prompt.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for SwkbdResult
impl From<Error> for SwkbdResult
Source§impl From<i8> for Error
impl From<i8> for Error
Source§fn from(value: SwkbdResult) -> Self
fn from(value: SwkbdResult) -> Self
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)