tatami 0.1.4

A library for creating satellites and interacting with Tatami protocols.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{Shoji, TatamiEvent};

#[async_trait::async_trait]
pub trait Module {
	/// Whenever a TatamiEvent occurs, this is triggered.
	async fn on_events(&mut self, _event: TatamiEvent, _shoji: &mut Shoji);

	/// Whenever a Satellite launches, this is triggered.
	async fn on_launch(&mut self, _shoji: &mut Shoji);
}