pub struct FbcSessionInfo {
    pub session_id: u32,
    pub pid: u32,
    pub vgpu_instance: Option<u32>,
    pub display_ordinal: u32,
    pub session_type: FbcSessionType,
    pub session_flags: FbcFlags,
    pub hres_max: u32,
    pub vres_max: u32,
    pub hres: u32,
    pub vres: u32,
    pub average_fps: u32,
    pub average_latency: u32,
}
Expand description

Information about a frame buffer capture session.

Fields

session_id: u32

Unique session ID

pid: u32

The ID of the process that owns this session

vgpu_instance: Option<u32>

The ID of the vGPU instance that owns this session (if applicable).

display_ordinal: u32

The identifier of the display this session is running on

session_type: FbcSessionType

The type of this session

session_flags: FbcFlags

Various flags with info

hres_max: u32

The maximum horizontal resolution supported by this session

vres_max: u32

The maximum vertical resolution supported by this session

hres: u32

The horizontal resolution requested by the caller in the capture call

vres: u32

The vertical resolution requested by the caller in the capture call

average_fps: u32

Moving average of new frames captured per second for this session

average_latency: u32

Moving average of new frame capture latency in microseconds for this session

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Construct FbcSessionInfo from the corresponding C struct.

Errors
  • UnexpectedVariant, for which you can read the docs for
  • IncorrectBits, if the sessionFlags from the given struct do match the wrapper definition

The type returned in the event of a conversion error.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.