pub enum VRDisplayEvent {
Connect(VRDisplayData),
Disconnect(u32),
Activate(VRDisplayData, VRDisplayEventReason),
Deactivate(VRDisplayData, VRDisplayEventReason),
Change(VRDisplayData),
Blur(VRDisplayData),
Focus(VRDisplayData),
PresentChange(VRDisplayData, bool),
Pause(u32),
Resume(u32),
Exit(u32),
}
Indicates that a VRDisplay has been connected.
Indicates that a VRDisplay has been disconnected.
param: display_id
Indicates that something has occured which suggests the VRDisplay should be presented to
Indicates that something has occured which suggests the VRDisplay should exit presentation
Indicates that some of the VRDisplay's data has changed (eye parameters, tracking data, chaperone, ipd, etc.)
Indicates that presentation to the display by the page is paused by the user agent, OS, or VR hardware
Indicates that presentation to the display by the page has resumed after being blurred.
Indicates that a VRDisplay has begun or ended VR presentation
Indicates that VRDisplay presentation loop must be paused (i.e Android app goes to background)
Indicates that VRDisplay presentation loop must be resumed (i.e Android app goes to foreground)
Indicates that user has exited VRDisplay presentation (i.e. User clicked back key on android)
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more