Struct nvml_wrapper::struct_wrappers::device::FbcSessionInfo
source · [−]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: u32Unique session ID
pid: u32The 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: u32The identifier of the display this session is running on
session_type: FbcSessionTypeThe type of this session
session_flags: FbcFlagsVarious flags with info
hres_max: u32The maximum horizontal resolution supported by this session
vres_max: u32The maximum vertical resolution supported by this session
hres: u32The horizontal resolution requested by the caller in the capture call
vres: u32The vertical resolution requested by the caller in the capture call
average_fps: u32Moving average of new frames captured per second for this session
average_latency: u32Moving average of new frame capture latency in microseconds for this session
Trait Implementations
sourceimpl Clone for FbcSessionInfo
impl Clone for FbcSessionInfo
sourcefn clone(&self) -> FbcSessionInfo
fn clone(&self) -> FbcSessionInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FbcSessionInfo
impl Debug for FbcSessionInfo
sourceimpl PartialEq<FbcSessionInfo> for FbcSessionInfo
impl PartialEq<FbcSessionInfo> for FbcSessionInfo
sourcefn eq(&self, other: &FbcSessionInfo) -> bool
fn eq(&self, other: &FbcSessionInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FbcSessionInfo) -> bool
fn ne(&self, other: &FbcSessionInfo) -> bool
This method tests for !=.
sourceimpl TryFrom<nvmlFBCSessionInfo_st> for FbcSessionInfo
impl TryFrom<nvmlFBCSessionInfo_st> for FbcSessionInfo
impl StructuralPartialEq for FbcSessionInfo
Auto Trait Implementations
impl RefUnwindSafe for FbcSessionInfo
impl Send for FbcSessionInfo
impl Sync for FbcSessionInfo
impl Unpin for FbcSessionInfo
impl UnwindSafe for FbcSessionInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more