We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4248ee8 commit 429f13bCopy full SHA for 429f13b
uefi/src/boot.rs
@@ -1598,6 +1598,14 @@ pub struct TplGuard {
1598
old_tpl: Tpl,
1599
}
1600
1601
+impl TplGuard {
1602
+ /// Returns the previous [`Tpl`].
1603
+ #[must_use]
1604
+ pub const fn old_tpl(&self) -> Tpl {
1605
+ self.old_tpl
1606
+ }
1607
+}
1608
+
1609
impl Drop for TplGuard {
1610
fn drop(&mut self) {
1611
let bt = boot_services_raw_panicking();
0 commit comments