Enum wayland_protocols_plasma::wayland_eglstream_controller::generated::client::wl_eglstream_controller::PresentMode
source · #[non_exhaustive]#[repr(u32)]pub enum PresentMode {
DontCare = 0,
Fifo = 1,
Mailbox = 2,
}
Expand description
Stream present mode
-
dont_care: Using this enum will tell the server to make its own decisions regarding present mode.
-
fifo: Tells the server to use a fifo present mode. The decision to use fifo synchronous is left up to the server.
-
mailbox: Tells the server to use a mailbox present mode.
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.
DontCare = 0
Let the Server decide present mode
Fifo = 1
Use a fifo present mode
Mailbox = 2
Use a mailbox mode
Trait Implementations§
source§impl Clone for PresentMode
impl Clone for PresentMode
source§fn clone(&self) -> PresentMode
fn clone(&self) -> PresentMode
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 PresentMode
impl Debug for PresentMode
source§impl From<PresentMode> for u32
impl From<PresentMode> for u32
source§fn from(val: PresentMode) -> u32
fn from(val: PresentMode) -> u32
Converts to this type from the input type.
source§impl Hash for PresentMode
impl Hash for PresentMode
source§impl Ord for PresentMode
impl Ord for PresentMode
source§fn cmp(&self, other: &PresentMode) -> Ordering
fn cmp(&self, other: &PresentMode) -> 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 PresentMode
impl PartialEq for PresentMode
source§fn eq(&self, other: &PresentMode) -> bool
fn eq(&self, other: &PresentMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PresentMode
impl PartialOrd for PresentMode
source§fn partial_cmp(&self, other: &PresentMode) -> Option<Ordering>
fn partial_cmp(&self, other: &PresentMode) -> 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 TryFrom<u32> for PresentMode
impl TryFrom<u32> for PresentMode
impl Copy for PresentMode
impl Eq for PresentMode
impl StructuralPartialEq for PresentMode
Auto Trait Implementations§
impl Freeze for PresentMode
impl RefUnwindSafe for PresentMode
impl Send for PresentMode
impl Sync for PresentMode
impl Unpin for PresentMode
impl UnwindSafe for PresentMode
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.