Struct x11rb_protocol::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§
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<'de> Deserialize<'de> for SwapAction
impl<'de> Deserialize<'de> for SwapAction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SwapAction> for Option<u16>
impl From<SwapAction> for Option<u16>
source§fn from(input: SwapAction) -> Self
fn from(input: SwapAction) -> Self
Converts to this type from the input type.
source§impl From<SwapAction> for Option<u32>
impl From<SwapAction> for Option<u32>
source§fn from(input: SwapAction) -> Self
fn from(input: SwapAction) -> Self
Converts to this type from the input type.
source§impl From<SwapAction> for Option<u8>
impl From<SwapAction> for Option<u8>
source§fn from(input: SwapAction) -> Self
fn from(input: SwapAction) -> Self
Converts to this type from the input type.
source§impl From<SwapAction> for u16
impl From<SwapAction> for u16
source§fn from(input: SwapAction) -> Self
fn from(input: SwapAction) -> Self
Converts to this type from the input type.
source§impl From<SwapAction> for u32
impl From<SwapAction> for u32
source§fn from(input: SwapAction) -> Self
fn from(input: SwapAction) -> Self
Converts to this type from the input type.
source§impl From<SwapAction> for u8
impl From<SwapAction> for u8
source§fn from(input: SwapAction) -> Self
fn from(input: SwapAction) -> Self
Converts to this type from the input type.
source§impl From<u8> for SwapAction
impl From<u8> for SwapAction
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 moresource§impl Serialize for SwapAction
impl Serialize for SwapAction
impl 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