Enum openxr::Event [−][src]
#[non_exhaustive] pub enum Event<'a> { EventsLost(EventsLost<'a>), InstanceLossPending(InstanceLossPending<'a>), SessionStateChanged(SessionStateChanged<'a>), ReferenceSpaceChangePending(ReferenceSpaceChangePending<'a>), PerfSettingsEXT(PerfSettingsEXT<'a>), VisibilityMaskChangedKHR(VisibilityMaskChangedKHR<'a>), InteractionProfileChanged(InteractionProfileChanged<'a>), MainSessionVisibilityChangedEXTX(MainSessionVisibilityChangedEXTX<'a>), DisplayRefreshRateChangedFB(DisplayRefreshRateChangedFB<'a>), }
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.
EventsLost(EventsLost<'a>)
InstanceLossPending(InstanceLossPending<'a>)
SessionStateChanged(SessionStateChanged<'a>)
ReferenceSpaceChangePending(ReferenceSpaceChangePending<'a>)
PerfSettingsEXT(PerfSettingsEXT<'a>)
VisibilityMaskChangedKHR(VisibilityMaskChangedKHR<'a>)
InteractionProfileChanged(InteractionProfileChanged<'a>)
MainSessionVisibilityChangedEXTX(MainSessionVisibilityChangedEXTX<'a>)
DisplayRefreshRateChangedFB(DisplayRefreshRateChangedFB<'a>)
Implementations
Decode an event
Returns None
if the event type is not recognized, e.g. if it’s from an unknown extension
Safety
raw
must refer to an EventDataBuffer
populated by a successful call to
xrPollEvent
, which has not been moved since.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> UnwindSafe for Event<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more