#[repr(C)]
pub struct ovrDetectResult { pub _align: [u64; 0], pub IsOculusServiceRunning: ovrBool, pub IsOculusHMDConnected: ovrBool, pub _pad0: [u8; 6], }
Expand description

Return values for ovr_Detect.

see ovr_Detect

Fields§

§_align: [u64; 0]§IsOculusServiceRunning: ovrBool

Is ovrFalse when the Oculus Service is not running. This means that the Oculus Service is either uninstalled or stopped. IsOculusHMDConnected will be ovrFalse in this case.

Is ovrTrue when the Oculus Service is running. This means that the Oculus Service is installed and running. IsOculusHMDConnected will reflect the state of the HMD.

§IsOculusHMDConnected: ovrBool

Is ovrFalse when an Oculus HMD is not detected. If the Oculus Service is not running, this will be ovrFalse.

Is ovrTrue when an Oculus HMD is detected. This implies that the Oculus Service is also installed and running.

§_pad0: [u8; 6]

\internal struct pad.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.