Trait cognitive_qualia::traits::StatePublishing [] [src]

pub trait StatePublishing {
    fn emit(&mut self, id: SignalId, package: Perceptron);
    fn suspend(&mut self);
    fn wakeup(&mut self);
    fn input_devices_changed(&mut self);
    fn output_devices_changed(&mut self);
    fn notify(&mut self);
    fn publish_output(&mut self, drm_budle: DrmBundle);
    fn emit_vblank(&mut self, display_id: i32);
    fn emit_page_flip(&mut self, display_id: i32);
}

Generic communication with the rest of application.

Required Methods

Emits given signal. TODO: Remove emit method.

Notifies about suspending drawing on screen. Probably virtual terminal was switched and GPU is not available to us.

Sends request to revoke application from suspension.

Sends notification about changing of state of input devices.

Sends notification about changing of state of output devices.

Notifies application about event that requires screen to be refreshed. TODO: Rename notify to refresh.

Publishes newly found output.

Notifies about V-blank.

Notifies about page flip.

Implementors