pub struct NoPowerControl;Expand description
No-op power control — use when shutdown is not implemented for the target.
Trait Implementations§
Source§impl PowerControl for NoPowerControl
impl PowerControl for NoPowerControl
fn request_power_off(&self)
Source§fn request_reboot(&self)
fn request_reboot(&self)
Request a soft reboot. The default implementation is a no-op; targets
without a wired reboot path can leave it as such. Like
request_power_off, this MUST return
promptly — typically a Signal::signal(()) to a reboot task that
performs any final flushes before triggering a system reset.