#[non_exhaustive]pub enum GenericDrmEvent {
VBlank(DrmVblankEvent),
FlipComplete(DrmVblankEvent),
CrtcSequence(DrmCrtcSequenceEvent),
}
Expand description
Enumeration of generic DRM event types.
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.
Implementations§
Source§impl GenericDrmEvent
impl GenericDrmEvent
Sourcepub fn try_from_raw(raw: &DrmEvent) -> Result<Self, ()>
pub fn try_from_raw(raw: &DrmEvent) -> Result<Self, ()>
Try to interpret the given raw event as one of the generic event types.
Trait Implementations§
Source§impl Clone for GenericDrmEvent
impl Clone for GenericDrmEvent
Source§fn clone(&self) -> GenericDrmEvent
fn clone(&self) -> GenericDrmEvent
Returns a duplicate 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 GenericDrmEvent
impl Debug for GenericDrmEvent
impl Copy for GenericDrmEvent
Auto Trait Implementations§
impl Freeze for GenericDrmEvent
impl RefUnwindSafe for GenericDrmEvent
impl Send for GenericDrmEvent
impl Sync for GenericDrmEvent
impl Unpin for GenericDrmEvent
impl UnwindSafe for GenericDrmEvent
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