yuno 0.2.0

Multimedia UI layout and rendering framework powered by Skia.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod atomic_committer;
mod wayland_committer;

use anyhow::Result;

pub use atomic_committer::AtomicCommitter;
pub use wayland_committer::WaylandCommitter;

#[allow(unused)]
pub trait Committer<H, T> {
    fn init(d: H) -> Result<Self>
    where
        Self: Sized;
    fn awake(&self) -> Result<()>; // Open output with current display setting (e.g. CRTC Mode Setting)
    fn commit(&self) -> Result<()>;
    fn set_state(&mut self, state: T) -> Result<()>;
    fn sync(&self) -> Result<()>;
}