pub enum PmuError {
Unavailable,
InvalidCounter,
UnsupportedEvent,
InvalidConfiguration,
InvalidPeriod,
}Available on AArch64 and crate feature
pmu only.Expand description
A requested PMU operation could not be performed.
Variants§
This CPU does not implement architectural PMUv3.
InvalidCounter
The counter index is not implemented on this CPU.
UnsupportedEvent
The event is architecturally reported as unsupported.
InvalidConfiguration
The configuration does not apply to the selected counter.
InvalidPeriod
The requested period is zero or exceeds the active counter width.
Trait Implementations§
impl Copy for PmuError
impl Eq for PmuError
Source§impl Error for PmuError
impl Error for PmuError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for PmuError
Auto Trait Implementations§
impl Freeze for PmuError
impl RefUnwindSafe for PmuError
impl Send for PmuError
impl Sync for PmuError
impl Unpin for PmuError
impl UnsafeUnpin for PmuError
impl UnwindSafe for PmuError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more