#[non_exhaustive]pub enum CapStatus {
Pending,
Applied(Pacing),
Superseded,
}Expand description
Where a CapRequest is.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pending
The platform hasn’t reported applying it yet. A platform that never reports (one whose rate is fixed and that doesn’t say so) leaves every request here.
Applied(Pacing)
The platform applied it: its report.
Superseded
A later change of the cap (another request, the options screen, a profile switched to) took the next serial: the cap asked for is no longer the one in force, whether or not it had applied.
Trait Implementations§
impl Copy for CapStatus
impl Eq for CapStatus
impl StructuralPartialEq for CapStatus
Auto Trait Implementations§
impl Freeze for CapStatus
impl RefUnwindSafe for CapStatus
impl Send for CapStatus
impl Sync for CapStatus
impl Unpin for CapStatus
impl UnsafeUnpin for CapStatus
impl UnwindSafe for CapStatus
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