simpleos 0.6.3

A Simple OS use for MCU, that implements single-threaded asynchronous runtime.
1
2
3
4
5
6
7
8
9
10
11
use alloc::boxed::Box;
use alloc::string::String;
use alloc::vec::Vec;
use async_trait::async_trait;
use crate::executor::ExitCode;

#[async_trait(?Send)]
pub trait CmdParser {
    fn help(&self) -> &'static [(&'static str, &'static str)];
    async fn parse(&self, args: &Vec<String>) -> ExitCode;
}