22 lines
376 B
Rust
22 lines
376 B
Rust
use crate::prelude::*;
|
|
|
|
pub mod frame;
|
|
pub mod render;
|
|
pub mod window;
|
|
|
|
pub trait Application {
|
|
type Output;
|
|
|
|
fn run(
|
|
&mut self,
|
|
args: Vec<String>,
|
|
) -> impl core::future::Future<Output = Result<Self::Output, Error>> + Send;
|
|
}
|
|
|
|
#[derive(Debug)]
|
|
pub enum Error {
|
|
UnknownCommand(String),
|
|
ApplicationFailed(String),
|
|
KernelError(String),
|
|
}
|