mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-12 23:01:47 +01:00
15 lines
266 B
Cap'n Proto
15 lines
266 B
Cap'n Proto
|
|
struct BadState { }
|
|
|
|
interface TraitPowerable {
|
|
turnOn @0 () -> Fallible(StatePowerable, Error(BadState));
|
|
turnOff @1 () -> Fallible(StatePowerable, Error(BadState));
|
|
}
|
|
|
|
struct StatePowerable {
|
|
union {
|
|
Off @0 :Void;
|
|
On @1 :Void;
|
|
}
|
|
}
|