Skip to main content
QAROS Rust API Dev (main) · versions: Dev (main) · Developer Guide

QarGraphicsDeviceDisabledExt

Struct QarGraphicsDeviceDisabledExt 

Source
#[repr(C)]
pub struct QarGraphicsDeviceDisabledExt { pub header: QarStructureHeader, }
Expand description

@brief Creates the session without a graphics device.

Chain this extension from QarOnboardInit or QarRejoinInit for an application that never streams media, such as a companion process that only drives app volumes, GUI panels or peers. The session then starts faster: it creates no Vulkan or D3D11 device, enumerates no graphics adapter and loads no transfer plugin. Onboarding, joining, peers, app volumes, GUI panels and storage work as usual.

On such a session every media streaming call (qar_render_sender_create(), qar_render_sender_create_async(), qar_render_sender_subscribe_requests(), qar_video_sender_create()) and qar_session_get_graphics_device_id() return QAR_STATUS_GRAPHICS_DEVICE_NOT_INITIALIZED.

Chaining it together with QarGraphicsDeviceId is refused with QAR_STATUS_ARGUMENT_NOT_SUPPORTED. A local-app session shared by several onboards of one process keeps the choice of the onboard that created it. Initialize with qar_graphics_device_disabled_ext_default().

Fields§

§header: QarStructureHeader

Trait Implementations§

Source§

impl Clone for QarGraphicsDeviceDisabledExt

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for QarGraphicsDeviceDisabledExt

Source§

impl Debug for QarGraphicsDeviceDisabledExt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for QarGraphicsDeviceDisabledExt

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for QarGraphicsDeviceDisabledExt

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.