Files
FoundryOS/libk/src/std/application.rs
T
2025-02-27 01:16:07 +00:00

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),
}