pub enum DrmEvent {
Generic(GenericDrmEvent),
Driver(UnsupportedDrmEvent),
Unsupported(UnsupportedDrmEvent),
}
Expand description
An event emitted from a crate::Card
.
DRM supports both generic events that are supported by all drivers and some driver-specific event types. This library only directly supports the generic ones, but does still expose driver-specific events in a raw form for callers to decode themselves.
Variants§
Generic(GenericDrmEvent)
An event of a generic type that’s defined for all DRM drivers.
Driver(UnsupportedDrmEvent)
An event of a driver-specific type.
Unsupported(UnsupportedDrmEvent)
An event that is neither driver-specific nor recognized as a supported generic event type.
This is included primarily for error-reporting purposes. A
generic event type that’s currently unsupported might become
supported by an additional GenericDrmEvent
variant in
a future version, so callers that wish to continue working
against future releases should not use this to actually handle
any events beyond reporting that an event is unsupported.