#[non_exhaustive]#[repr(u8)]pub enum PtplChange {
NoChange = 0,
Clear = 2,
Persist = 3,
}Expand description
Change-Persist-Through-Power-Loss (cptpl) for Reservation Register.
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.
NoChange = 0
No change to PTPL state.
Clear = 2
Reservations and registrations are released on power-on.
Persist = 3
Reservations and registrations persist across power loss.
Trait Implementations§
Source§impl Clone for PtplChange
impl Clone for PtplChange
Source§fn clone(&self) -> PtplChange
fn clone(&self) -> PtplChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PtplChange
impl Debug for PtplChange
Source§impl Default for PtplChange
impl Default for PtplChange
Source§fn default() -> PtplChange
fn default() -> PtplChange
Returns the “default value” for a type. Read more
Source§impl PartialEq for PtplChange
impl PartialEq for PtplChange
Source§fn eq(&self, other: &PtplChange) -> bool
fn eq(&self, other: &PtplChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PtplChange
impl Eq for PtplChange
impl StructuralPartialEq for PtplChange
Auto Trait Implementations§
impl Freeze for PtplChange
impl RefUnwindSafe for PtplChange
impl Send for PtplChange
impl Sync for PtplChange
impl Unpin for PtplChange
impl UnsafeUnpin for PtplChange
impl UnwindSafe for PtplChange
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