pub enum SubsurfaceMode {
Sync,
Desync,
}
Expand description
Wayland subsurfaces may be in one of two modes, Sync (the default) or Desync. When a wl_subsurface is in sync mode, a wl_surface::commit will simply snapshot the set of pending state. This state will be applied (and changes will appear on screen) when its parent’s surface is committed.
In contrast, a surface in Desync mode will schedule an update to pixels on screen in response to wl_surface::commit.
Variants§
Trait Implementations§
Source§impl Clone for SubsurfaceMode
impl Clone for SubsurfaceMode
Source§fn clone(&self) -> SubsurfaceMode
fn clone(&self) -> SubsurfaceMode
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 SubsurfaceMode
impl Debug for SubsurfaceMode
Source§impl PartialEq for SubsurfaceMode
impl PartialEq for SubsurfaceMode
impl Copy for SubsurfaceMode
impl StructuralPartialEq for SubsurfaceMode
Auto Trait Implementations§
impl Freeze for SubsurfaceMode
impl RefUnwindSafe for SubsurfaceMode
impl Send for SubsurfaceMode
impl Sync for SubsurfaceMode
impl Unpin for SubsurfaceMode
impl UnwindSafe for SubsurfaceMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)