The Entity trait provides no-op pause and resume default methods that can optionally be implemented by entities. These methods are used by the migration code to pause devices before migrating their state and resume them on the target.
It is possible for the LPC UART device to continue receiving data after devices are paused, as a user might be connected to the console and typing. To allow for a consistent snapshot of device state during migration, the LPC UART should implement pause and resume methods.
The
Entitytrait provides no-oppauseandresumedefault methods that can optionally be implemented by entities. These methods are used by the migration code to pause devices before migrating their state and resume them on the target.It is possible for the LPC UART device to continue receiving data after devices are paused, as a user might be connected to the console and typing. To allow for a consistent snapshot of device state during migration, the LPC UART should implement pause and resume methods.