mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-13 23:31:43 +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;
|
||
|
}
|
||
|
}
|