dope_sys/table/token/frame.rs
1use crate::table::token::{Context, Tuning};
2
3pub enum Control<T> {
4 Shutdown,
5 Tuning(T),
6 ClosePrep,
7 Unknown,
8}
9
10/// A validated framework identity retaining its original diagnostic value.
11pub trait Decode: Copy {
12 type Context: Context;
13 type Tuning: Tuning<Slot = <Self::Context as Context>::Slot>;
14
15 fn from_raw(raw: u64) -> Result<Self, u64>;
16 fn decode(self) -> Control<Self::Tuning>;
17 fn control(self) -> <Self::Context as Context>::Control;
18}