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§

source

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.

Implementations on Foreign Types§

source§

impl<T> MsrErrorExt for Result<T, MsrError>

source§

fn or_else_if_unknown(self, f: impl FnOnce() -> Self) -> Self

Implementors§