func (d *domainClient) SetPlaybackRate(ctx context.Context, args *SetPlaybackRateArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "Animation.setPlaybackRate", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Animation.setPlaybackRate", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Animation", Op: "SetPlaybackRate", Err: err}
	}
	return
}
SetPlaybackRate invokes the Animation method. Sets the playback rate of the
document timeline.
package animation
import (
	"context"
	"github.com/mafredri/cdp/protocol/internal"
	"github.com/mafredri/cdp/rpcc"
)
type domainClient struct{ conn *rpcc.Conn }
func NewClient(conn *rpcc.Conn) *domainClient {
	return &domainClient{conn: conn}
}
func (d *domainClient) Disable(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Animation.disable", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Animation", Op: "Disable", Err: err}
	}
	return
}
func (d *domainClient) Enable(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Animation.enable", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Animation", Op: "Enable", Err: err}
	}
	return
}
func (d *domainClient) GetCurrentTime(ctx context.Context, args *GetCurrentTimeArgs) (reply *GetCurrentTimeReply, err error) {
	reply = new(GetCurrentTimeReply)
	if args != nil {
		err = rpcc.Invoke(ctx, "Animation.getCurrentTime", args, reply, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Animation.getCurrentTime", nil, reply, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Animation", Op: "GetCurrentTime", Err: err}
	}
	return
}
func (d *domainClient) GetPlaybackRate(ctx context.Context) (reply *GetPlaybackRateReply, err error) {
	reply = new(GetPlaybackRateReply)
	err = rpcc.Invoke(ctx, "Animation.getPlaybackRate", nil, reply, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Animation", Op: "GetPlaybackRate", Err: err}
	}
	return
}
func (d *domainClient) ReleaseAnimations(ctx context.Context, args *ReleaseAnimationsArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "Animation.releaseAnimations", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Animation.releaseAnimations", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Animation", Op: "ReleaseAnimations", Err: err}
	}
	return
}
func (d *domainClient) ResolveAnimation(ctx context.Context, args *ResolveAnimationArgs) (reply *ResolveAnimationReply, err error) {
	reply = new(ResolveAnimationReply)
	if args != nil {
		err = rpcc.Invoke(ctx, "Animation.resolveAnimation", args, reply, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Animation.resolveAnimation", nil, reply, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Animation", Op: "ResolveAnimation", Err: err}
	}
	return
}
func (d *domainClient) SeekAnimations(ctx context.Context, args *SeekAnimationsArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "Animation.seekAnimations", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Animation.seekAnimations", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Animation", Op: "SeekAnimations", Err: err}
	}
	return
}
func (d *domainClient) SetPaused(ctx context.Context, args *SetPausedArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "Animation.setPaused", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Animation.setPaused", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Animation", Op: "SetPaused", Err: err}
	}
	return
}