pub struct Status {
pub is_capture_possible: bool,
pub currently_capturing: bool,
pub can_create_now: bool,
pub screen_size: Size,
pub xrandr_available: bool,
pub outputs: Vec<Output>,
pub nvfbc_version: u32,
pub in_modeset: bool,
}Fields§
§is_capture_possible: boolWhether or not framebuffer capture is supported by the graphics driver.
currently_capturing: boolWhether or not there is already a capture session on this system.
can_create_now: boolWhether or not it is possible to create a capture session on this system.“]
screen_size: SizeSize of the X screen (framebuffer).
xrandr_available: boolWhether the XRandR extension is available.
If this extension is not available then it is not possible to have information about RandR outputs.
outputs: Vec<Output>Array of outputs connected to the X screen.
An application can track a specific output by specifying its ID when creating a capture session.
Only if XRandR is available.
nvfbc_version: u32Version of the NvFBC library running on this system.
in_modeset: boolWhether the X server is currently in modeset.
When the X server is in modeset, it must give up all its video memory allocations. It is not possible to create a capture session until the modeset is over.
Note that VT-switches are considered modesets.