pub trait Handler { // Required method fn enter_dfu(&mut self); }
Handler trait for DFU runtime mode.
Implement this trait to handle entering DFU mode.
Called when the device should enter DFU mode.
This is called after a valid detach sequence (detach request followed by USB reset within the timeout period). The implementation should mark the device for DFU mode and perform a system reset.