Trait virt::x86::MsrErrorExt
source · pub trait MsrErrorExt: Sized {
// Required method
fn or_else_if_unknown(self, f: impl FnOnce() -> Self) -> Self;
}
Expand description
Extension trait to chain MSR accesses together.
Required Methods§
sourcefn or_else_if_unknown(self, f: impl FnOnce() -> Self) -> Self
fn or_else_if_unknown(self, f: impl FnOnce() -> Self) -> Self
Calls f
if self
is Err(Msr::Unknown)
.
Object Safety§
This trait is not object safe.