Files
FoundryOS/libk/src/std/application.rs
T

22 lines
364 B
Rust

use crate::prelude::*;
mod frame;
mod render;
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),
}