[][src]Struct nvml_wrapper::struct_wrappers::device::EncoderSessionInfo

pub struct EncoderSessionInfo {
    pub session_id: u32,
    pub pid: u32,
    pub vgpu_instance: Option<u32>,
    pub codec_type: EncoderType,
    pub hres: u32,
    pub vres: u32,
    pub average_fps: u32,
    pub average_latency: u32,
}

Holds encoder session information.

Fields

session_id: u32

Unique ID for this session.

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).

codec_type: EncoderTypehres: u32

Current horizontal encoding resolution.

vres: u32

Current vertical encoding resolution.

average_fps: u32

Moving average encode frames per second.

average_latency: u32

Moving average encode latency in μs.

Trait Implementations

impl Clone for EncoderSessionInfo[src]

impl Debug for EncoderSessionInfo[src]

impl Eq for EncoderSessionInfo[src]

impl Hash for EncoderSessionInfo[src]

impl PartialEq<EncoderSessionInfo> for EncoderSessionInfo[src]

impl StructuralEq for EncoderSessionInfo[src]

impl StructuralPartialEq for EncoderSessionInfo[src]

impl TryFrom<nvmlEncoderSessionInfo_st> for EncoderSessionInfo[src]

type Error = NvmlError

The type returned in the event of a conversion error.

pub fn try_from(value: nvmlEncoderSessionInfo_t) -> Result<Self, Self::Error>[src]

Construct EncoderSessionInfo from the corresponding C struct.

Errors

  • UnexpectedVariant, for which you can read the docs for

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.