Enum tfc::GenericError
source · pub enum GenericError<P: Error> {
Platform(P),
UnsupportedAscii(u8),
UnsupportedUnicode(char),
Unknown,
}
Expand description
Error enum returned by the traits
.
Variants§
Platform(P)
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.
Trait Implementations§
source§impl<P: Error> Display for GenericError<P>
impl<P: Error> Display for GenericError<P>
source§impl<P: Error> Error for GenericError<P>
impl<P: Error> Error for GenericError<P>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl<P> RefUnwindSafe for GenericError<P>where
P: RefUnwindSafe,
impl<P> Send for GenericError<P>where
P: Send,
impl<P> Sync for GenericError<P>where
P: Sync,
impl<P> Unpin for GenericError<P>where
P: Unpin,
impl<P> UnwindSafe for GenericError<P>where
P: UnwindSafe,
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