// automatically generated by stateify. package time import ( "gvisor.dev/gvisor/pkg/state" ) func (x *Time) beforeSave() {} func (x *Time) save(m state.Map) { x.beforeSave() m.Save("ns", &x.ns) } func (x *Time) afterLoad() {} func (x *Time) load(m state.Map) { m.Load("ns", &x.ns) } func (x *Setting) beforeSave() {} func (x *Setting) save(m state.Map) { x.beforeSave() m.Save("Enabled", &x.Enabled) m.Save("Next", &x.Next) m.Save("Period", &x.Period) } func (x *Setting) afterLoad() {} func (x *Setting) load(m state.Map) { m.Load("Enabled", &x.Enabled) m.Load("Next", &x.Next) m.Load("Period", &x.Period) } func (x *Timer) beforeSave() {} func (x *Timer) save(m state.Map) { x.beforeSave() m.Save("clock", &x.clock) m.Save("listener", &x.listener) m.Save("setting", &x.setting) m.Save("paused", &x.paused) } func (x *Timer) afterLoad() {} func (x *Timer) load(m state.Map) { m.Load("clock", &x.clock) m.Load("listener", &x.listener) m.Load("setting", &x.setting) m.Load("paused", &x.paused) } func init() { state.Register("time.Time", (*Time)(nil), state.Fns{Save: (*Time).save, Load: (*Time).load}) state.Register("time.Setting", (*Setting)(nil), state.Fns{Save: (*Setting).save, Load: (*Setting).load}) state.Register("time.Timer", (*Timer)(nil), state.Fns{Save: (*Timer).save, Load: (*Timer).load}) }