api.fabaccess-api/traits/powerable.capnp
Nadja von Reitzenstein Čerpnjak ef3db21789 Stuff!
2024-04-15 16:28:23 +02:00

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;
}
}