func (rs Rules) Call(ctx context.Context, c *executor.Call) (mesos.Response, error) {
	return Rule(rs.Eval).Call(ctx, c)
}
Call implements the Caller interface for Rules
package callrules
import (
	"context"
	"github.com/mesos/mesos-go/api/v1/lib"
	"github.com/mesos/mesos-go/api/v1/lib/executor"
	"github.com/mesos/mesos-go/api/v1/lib/executor/calls"
)
func Call(caller calls.Caller) Rule {
	if caller == nil {
		return nil
	}
	return func(ctx context.Context, c *executor.Call, _ mesos.Response, _ error, ch Chain) (context.Context, *executor.Call, mesos.Response, error) {
		resp, err := caller.Call(ctx, c)
		return ch(ctx, c, resp, err)
	}
}
func CallF(cf calls.CallerFunc) Rule {
	return Call(calls.Caller(cf))
}
func (r Rule) Caller(caller calls.Caller) Rule {
	return Rules{r, Call(caller)}.Eval
}
func (r Rule) CallerF(cf calls.CallerFunc) Rule {
	return r.Caller(calls.Caller(cf))
}
func (r Rule) Call(ctx context.Context, c *executor.Call) (mesos.Response, error) {
	if r == nil {
		return nil, nil
	}
	_, _, resp, err := r(ctx, c, nil, nil, ChainIdentity)
	return resp, err
}