api.fabaccess-api/traits/powerable.capnp

15 lines
266 B
Cap'n Proto
Raw Normal View History

2024-04-15 16:28:23 +02:00
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;
}
}