Struct x11rb::protocol::dbe::SwapAction
source · pub struct SwapAction(/* private fields */);
Expand description
Specifies what to do with the front buffer after it is swapped with the back buffer.
§Fields
Undefined
- Discard the buffer. The buffer may be reallocated and end up with random VRAM content.Background
- Erase with window background.Untouched
- Leave untouched.Copied
- Copy the newly displayed front buffer.
Implementations§
source§impl SwapAction
impl SwapAction
pub const UNDEFINED: SwapAction = _
pub const BACKGROUND: SwapAction = _
pub const UNTOUCHED: SwapAction = _
pub const COPIED: SwapAction = _
Trait Implementations§
source§impl Clone for SwapAction
impl Clone for SwapAction
source§fn clone(&self) -> SwapAction
fn clone(&self) -> SwapAction
Returns a copy of the value. Read more
1.0.0 · 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 SwapAction
impl Debug for SwapAction
source§impl Default for SwapAction
impl Default for SwapAction
source§fn default() -> SwapAction
fn default() -> SwapAction
Returns the “default value” for a type. Read more
source§impl From<u8> for SwapAction
impl From<u8> for SwapAction
source§fn from(value: u8) -> SwapAction
fn from(value: u8) -> SwapAction
Converts to this type from the input type.
source§impl Hash for SwapAction
impl Hash for SwapAction
source§impl Ord for SwapAction
impl Ord for SwapAction
source§fn cmp(&self, other: &SwapAction) -> Ordering
fn cmp(&self, other: &SwapAction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SwapAction
impl PartialEq for SwapAction
source§fn eq(&self, other: &SwapAction) -> bool
fn eq(&self, other: &SwapAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SwapAction
impl PartialOrd for SwapAction
source§fn partial_cmp(&self, other: &SwapAction) -> Option<Ordering>
fn partial_cmp(&self, other: &SwapAction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SwapAction
impl Eq for SwapAction
impl StructuralPartialEq for SwapAction
Auto Trait Implementations§
impl Freeze for SwapAction
impl RefUnwindSafe for SwapAction
impl Send for SwapAction
impl Sync for SwapAction
impl Unpin for SwapAction
impl UnwindSafe for SwapAction
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