bootmgr-rs-core 0.16.5

A framework for easily creating boot managers in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-FileCopyrightText: 2025 some100 <ootinnyoo@outlook.com>
// SPDX-License-Identifier: MIT

//! Provides [`shutdown`] which shuts down the system.

use uefi::{
    Status,
    runtime::{self, ResetType},
};

/// Shuts down the system.
///
/// This function wraps around [`runtime::reset`] and provides a slightly more straightforward way to shutdown the system.
pub fn shutdown() -> ! {
    runtime::reset(ResetType::SHUTDOWN, Status::SUCCESS, None)
}