Trait RuntimeDevice

Source
pub trait RuntimeDevice:
    Debug
    + Send
    + Sync {
    // Required methods
    fn blocking_init(&mut self) -> Result<(), Error>;
    fn blocking_shutdown(&mut self) -> Result<(), Error>;
    fn open_screen_device(&mut self) -> Box<dyn ScreenDevice>;
    fn open_input_device(&mut self) -> Box<dyn InputDevice>;
    fn open_panic_restore_guard(&mut self) -> Box<dyn PanicRestoreGuard>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl<'a, T> RuntimeDevice for &'a mut T
where T: RuntimeDevice + ?Sized,

Source§

impl<T> RuntimeDevice for Box<T>
where T: RuntimeDevice + ?Sized,

Implementors§