akern-gkgoat-fork/ableos/src/experiments/server.rs
2021-11-16 00:09:27 -06:00

11 lines
244 B
Rust

pub trait Server {
/// Initialize the server and return a number
fn initialize() -> u32;
/// kill the server
fn kill() -> bool;
// put data in the servers outbox
fn send();
// put data in the servers inbox and notify it
fn recieve();
}