Struct ovr_sys::ovrInitParams

source ·
#[repr(C)]
pub struct ovrInitParams { pub _align: [u64; 0], pub Flags: ovrInitFlags, pub RequestedMinorVersion: u32, pub LogCallback: ovrLogCallback, pub UserData: usize, pub ConnectionTimeoutMS: u32, pub _pad0: [u8; 4], }
Expand description

Parameters for ovr_Initialize.

see ovr_Initialize

Fields§

§_align: [u64; 0]§Flags: ovrInitFlags

Flags from ovrInitFlags to override default behavior. Use 0 for the defaults.

§RequestedMinorVersion: u32

Requests a specific minor version of the LibOVR runtime. Flags must include ovrInit_RequestVersion or this will be ignored and OVR_MINOR_VERSION will be used. If you are directly calling the LibOVRRT version of ovr_Initialize in the LibOVRRT DLL then this must be valid and include ovrInit_RequestVersion.

§LogCallback: ovrLogCallback

User-supplied log callback function, which may be called at any time asynchronously from multiple threads until ovr_Shutdown completes. Use NULL to specify no log callback.

§UserData: usize

User-supplied data which is passed as-is to LogCallback. Typically this is used to store an application-specific pointer which is read in the callback function.

§ConnectionTimeoutMS: u32

Relative number of milliseconds to wait for a connection to the server before failing. Use 0 for the default timeout.

§_pad0: [u8; 4]

\internal

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.