func ReadRootResult_SetResult(msg *capnp.Message) (Result_SetResult, error) { root, err := msg.Root() if err != nil { return Result_SetResult{}, err } st := capnp.ToStruct(root) return Result_SetResult{st}, nil }
func ReadRootCommand_SetCommand(msg *capnp.Message) (Command_SetCommand, error) { root, err := msg.Root() if err != nil { return Command_SetCommand{}, err } st := capnp.ToStruct(root) return Command_SetCommand{st}, nil }
func (s Result_subResult) Set() (Result_SetResult, error) { p, err := s.Struct.Pointer(1) if err != nil { return Result_SetResult{}, err } ss := capnp.ToStruct(p) return Result_SetResult{Struct: ss}, nil }
func (s Command_subCommand) Set() (Command_SetCommand, error) { p, err := s.Struct.Pointer(1) if err != nil { return Command_SetCommand{}, err } ss := capnp.ToStruct(p) return Command_SetCommand{Struct: ss}, nil }