#[non_exhaustive]pub enum PanelSelfRefresh {
Unknown,
None,
Possible,
}Expand description
Whether a connected panel might hold its image without a flip.
Telemetry only, and deliberately not authoritative: PSR has no portable KMS property, so the best available signal is the connector type. Nothing gates behavior on this — a frame-economy decision that skipped a commit because it guessed the panel would self-refresh, and guessed wrong, freezes the display.
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.
Unknown
No connected connector, or the set could not be read.
None
Every connected connector is external, so none can self-refresh.
Possible
A connected eDP or DSI panel, which may support it.
Trait Implementations§
Source§impl Clone for PanelSelfRefresh
impl Clone for PanelSelfRefresh
impl Copy for PanelSelfRefresh
Source§impl Debug for PanelSelfRefresh
impl Debug for PanelSelfRefresh
Source§impl Default for PanelSelfRefresh
impl Default for PanelSelfRefresh
impl Eq for PanelSelfRefresh
Source§impl PartialEq for PanelSelfRefresh
impl PartialEq for PanelSelfRefresh
impl StructuralPartialEq for PanelSelfRefresh
Auto Trait Implementations§
impl Freeze for PanelSelfRefresh
impl RefUnwindSafe for PanelSelfRefresh
impl Send for PanelSelfRefresh
impl Sync for PanelSelfRefresh
impl Unpin for PanelSelfRefresh
impl UnsafeUnpin for PanelSelfRefresh
impl UnwindSafe for PanelSelfRefresh
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