Enum tfc::GenericError[][src]

pub enum GenericError<P: Error> {
    Platform(P),
    UnsupportedAscii(u8),
    UnsupportedUnicode(char),
    Unknown,
}

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 only provides 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

impl<P: Debug + Error> Debug for GenericError<P>[src]

impl<P: Error> Display for GenericError<P>[src]

impl<P: Error> Error for GenericError<P>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.