github.com/metacubex/gvisor@v0.0.0-20240320004321-933faba989ec/pkg/sentry/socket/netlink/route/route_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package route 4 5 import ( 6 "context" 7 8 "github.com/metacubex/gvisor/pkg/state" 9 ) 10 11 func (p *Protocol) StateTypeName() string { 12 return "pkg/sentry/socket/netlink/route.Protocol" 13 } 14 15 func (p *Protocol) StateFields() []string { 16 return []string{} 17 } 18 19 func (p *Protocol) beforeSave() {} 20 21 // +checklocksignore 22 func (p *Protocol) StateSave(stateSinkObject state.Sink) { 23 p.beforeSave() 24 } 25 26 func (p *Protocol) afterLoad(context.Context) {} 27 28 // +checklocksignore 29 func (p *Protocol) StateLoad(ctx context.Context, stateSourceObject state.Source) { 30 } 31 32 func init() { 33 state.Register((*Protocol)(nil)) 34 }