Example #1
0
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())
}
Example #2
0
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())
}
Example #4
0
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())
}
Example #5
0
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))
}
Example #6
0
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))
}
Example #7
0
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)
}
Example #8
0
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)
}
Example #9
0
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)
}