func (s HandleFactory_newHandle_Results) SetHandle(v Handle) error { if v.Client == nil { return s.Struct.SetPtr(0, capnp.Ptr{}) } seg := s.Segment() in := capnp.NewInterface(seg, seg.Message().AddCap(v.Client)) return s.Struct.SetPtr(0, in.ToPtr()) }
func (s Echoer_echo_Results) SetCap(v CallOrder) error { if v.Client == nil { return s.Struct.SetPtr(0, capnp.Ptr{}) } seg := s.Segment() in := capnp.NewInterface(seg, seg.Message().AddCap(v.Client)) return s.Struct.SetPtr(0, in.ToPtr()) }
func (s RealmGateway_export_Params) SetCap(v Persistent) error { if v.Client == nil { return s.Struct.SetPtr(0, capnp.Ptr{}) } seg := s.Segment() in := capnp.NewInterface(seg, seg.Message().AddCap(v.Client)) return s.Struct.SetPtr(0, in.ToPtr()) }
func (s ConnectRequest) SetAi(v Ai) error { if v.Client == nil { return s.Struct.SetPtr(1, capnp.Ptr{}) } seg := s.Segment() in := capnp.NewInterface(seg, seg.Message().AddCap(v.Client)) return s.Struct.SetPtr(1, in.ToPtr()) }
func (s Echoer_echo_Results) SetCap(v CallOrder) error { seg := s.Segment() if seg == nil { return nil } ci := seg.Message().AddCap(v.Client) return s.Struct.SetPointer(0, capnp.NewInterface(seg, ci)) }
func (s HandleFactory_newHandle_Results) SetHandle(v Handle) error { seg := s.Segment() if seg == nil { return nil } ci := seg.Message().AddCap(v.Client) return s.Struct.SetPointer(0, capnp.NewInterface(seg, ci)) }
func (s ConnectRequest) SetAi(v Ai) error { seg := s.Segment() if seg == nil { return nil } var in capnp.Interface if v.Client != nil { in = capnp.NewInterface(seg, seg.Message().AddCap(v.Client)) } return s.Struct.SetPointer(1, in) }
func (s HashFactory_newSha1_Results) SetHash(v Hash) error { seg := s.Segment() if seg == nil { return nil } var in capnp.Interface if v.Client != nil { in = capnp.NewInterface(seg, seg.Message().AddCap(v.Client)) } return s.Struct.SetPointer(0, in) }
func (s Echoer_echo_Results) SetCap(v CallOrder) error { seg := s.Segment() if seg == nil { return nil } var in capnp.Interface if v.Client != nil { in = capnp.NewInterface(seg, seg.Message().AddCap(v.Client)) } return s.Struct.SetPointer(0, in) }