#[non_exhaustive]pub enum RestorePolicy {
None,
SavedCrtc,
}Expand description
What to leave on screen when the backend goes away.
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.
None
Leave the last committed frame up.
SavedCrtc
Put back the CRTC configuration captured at
create.
What a display board wants on teardown: the console comes back rather than the screen freezing on whatever was committed last.
Trait Implementations§
Source§impl Clone for RestorePolicy
impl Clone for RestorePolicy
impl Copy for RestorePolicy
Source§impl Debug for RestorePolicy
impl Debug for RestorePolicy
Source§impl Default for RestorePolicy
impl Default for RestorePolicy
impl Eq for RestorePolicy
Source§impl PartialEq for RestorePolicy
impl PartialEq for RestorePolicy
impl StructuralPartialEq for RestorePolicy
Auto Trait Implementations§
impl Freeze for RestorePolicy
impl RefUnwindSafe for RestorePolicy
impl Send for RestorePolicy
impl Sync for RestorePolicy
impl Unpin for RestorePolicy
impl UnsafeUnpin for RestorePolicy
impl UnwindSafe for RestorePolicy
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