pub type Error = GenericError<<Context as FallibleContext>::PlatformError>;
Expand description
Convenience type alias for GenericError
.
Aliased Type§
enum Error {
Platform(PlatformError),
UnsupportedAscii(u8),
UnsupportedUnicode(char),
Unknown,
}
Variants§
Platform(PlatformError)
Platform-specific error.
This is likely to be an integer error code. The Display
implementation will provide a description of the error while the
Debug
implementation will only provide a number.
UnsupportedAscii(u8)
Unsupported ASCII character.
This is returned by
AsciiKeyboardContext
when an
unsupported or invalid character is given.
UnsupportedUnicode(char)
Unsupported Unicode character.
This is returned by
UnicodeKeyboardContext
when an
unsupported or invalid character is given.
Unknown
Unknown error.
This is returned when an underlying function doesn’t return an error
code but still indicates failure in some way. For example, if a function
returns a null pointer when a non-null pointer was expected, this
Unknown
error will be returned.