tfc 0.7.0

The Fat Controller. A library for simulating mouse and keyboard events.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// A context that can fail.
///
/// Platforms implement this trait to expose their platform-specific error type.
/// This error type is wrapped in [`GenericError`](crate::GenericError). An
/// [`Error`](crate::Error) type alias is provided for convenience.
pub trait FallibleContext {
    type PlatformError: std::error::Error;
    // I would have liked to define the wrapper error here but...
    // type Error = GenericError<Self::PlatformError>;
    // "associated type defaults are unstable"
    // https://github.com/rust-lang/rust/issues/29661
}