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

QarStatusCode

Struct QarStatusCode 

Source
#[repr(transparent)]
pub struct QarStatusCode(pub c_int);
Expand description

@brief Status codes exposed by the C API.

The C API intentionally exposes only a subset of the internal status codes. Any internal error code outside this subset is surfaced to C callers as QAR_STATUS_UNCLASSIFIED.

Tuple Fields§

§0: c_int

Implementations§

Source§

impl QarStatusCode

Source

pub const QAR_STATUS_SUCCESS: QarStatusCode

Source

pub const QAR_STATUS_UNCLASSIFIED: QarStatusCode

Source

pub const QAR_STATUS_NOT_IMPLEMENTED: QarStatusCode

Source

pub const QAR_STATUS_ARGUMENT_NOT_SUPPORTED: QarStatusCode

Source

pub const QAR_STATUS_TIMEOUT: QarStatusCode

Source

pub const QAR_STATUS_LOGIC_ERROR: QarStatusCode

Source

pub const QAR_STATUS_GUI_PANEL_CHANGE_NOT_PERMITTED: QarStatusCode

Source

pub const QAR_STATUS_GUI_PANEL_INVALID_ID: QarStatusCode

Source

pub const QAR_STATUS_GUI_PANEL_DISPLAY_NAME_INVALID: QarStatusCode

A GUI panel display name was refused: more than 64 Unicode code points, not valid UTF-8, or holding a control character (C0, DEL, C1) or a bidirectional formatting character (U+200E, U+200F, U+202A to U+202E, U+2066 to U+2069). The panel keeps its previous name; the result’s message names the rule.

Source

pub const QAR_STATUS_PANEL_CONTENT_BUNDLE_REFUSED: QarStatusCode

A content bundle name was refused: empty, longer than 64 bytes, starting with ‘.’, or holding a character other than A-Z, a-z, 0-9, ‘.’, ‘_’ and ‘-’.

Source

pub const QAR_STATUS_PANEL_CONTENT_PATH_REFUSED: QarStatusCode

A path in a content bundle was refused: not relative, holding an empty, ‘.’ or ‘..’ segment, a backslash, ‘:’, ‘%’, NUL or another character outside A-Z a-z 0-9 . _ - ~ + @ ( ) ! , and ‘/’, longer than 512 bytes, or a link when publishing a folder.

Source

pub const QAR_STATUS_PANEL_CONTENT_MIME_REFUSED: QarStatusCode

A bundle file’s extension is not on the served list, or its declared MIME type is not the one its extension maps to.

Source

pub const QAR_STATUS_PANEL_CONTENT_SIZE_REFUSED: QarStatusCode

A bundle file is larger than 16 MiB, the bundle larger than 64 MiB, or it holds no file or more than 1024.

Source

pub const QAR_STATUS_PANEL_CONTENT_NOT_PUBLISHER: QarStatusCode

A bundle was assigned to a panel, removed or messaged by a session that did not publish it. Only the publisher may.

Source

pub const QAR_STATUS_PANEL_CONTENT_NOT_FOUND: QarStatusCode

This session publishes no bundle of that name, or the folder to publish does not exist.

Source

pub const QAR_STATUS_PANEL_CONTENT_MESSAGE_REFUSED: QarStatusCode

A panel message is not one JSON value or is larger than 64 KiB.

Source

pub const QAR_STATUS_APP_VOLUME_INVALID_ID: QarStatusCode

A panel message is not one JSON value or is larger than 64 KiB.

Source

pub const QAR_STATUS_APP_VOLUME_GESTURE_CONFIGURATION_INVALID: QarStatusCode

A gesture configuration was refused because a rule in it could never work, such as an enabled two-hand rotate that moves the app with no rotation axis allowed. The volume keeps its previous configuration; the result’s message names the rule.

Source

pub const QAR_STATUS_APP_VOLUME_GESTURE_MODE_UNKNOWN: QarStatusCode

A gesture mode was named – to select, remove or read it – that the volume does not define. Nothing was changed; define the mode first with qar_app_volumes_change_gesture_mode().

Source

pub const QAR_STATUS_MEDIA_STREAMING_STREAM_IS_PAUSED: QarStatusCode

The receiver paused this stream (for example, its display is not visible). Not a failure: keep the sender and try the next frame later; it resumes when the receiver does. A render sender’s begin-frame does not report it: it waits through the pause.

Source

pub const QAR_STATUS_MEDIA_STREAMING_STREAM_IS_RECONNECTING: QarStatusCode

The receiver paused this stream (for example, its display is not visible). Not a failure: keep the sender and try the next frame later; it resumes when the receiver does. A render sender’s begin-frame does not report it: it waits through the pause.

Source

pub const QAR_STATUS_MEDIA_STREAMING_NO_ACTIVE_TRANSFERS: QarStatusCode

The receiver paused this stream (for example, its display is not visible). Not a failure: keep the sender and try the next frame later; it resumes when the receiver does. A render sender’s begin-frame does not report it: it waits through the pause.

Source

pub const QAR_STATUS_MEDIA_STREAMING_DESTINATION_RESERVATION_FAILED: QarStatusCode

The receiver paused this stream (for example, its display is not visible). Not a failure: keep the sender and try the next frame later; it resumes when the receiver does. A render sender’s begin-frame does not report it: it waits through the pause.

Source

pub const QAR_STATUS_MEDIA_STREAMING_SEND_PIPELINE_FAILED: QarStatusCode

The receiver paused this stream (for example, its display is not visible). Not a failure: keep the sender and try the next frame later; it resumes when the receiver does. A render sender’s begin-frame does not report it: it waits through the pause.

Source

pub const QAR_STATUS_MEDIA_STREAMING_LAYOUT_CHANGE_FAILED: QarStatusCode

The receiver paused this stream (for example, its display is not visible). Not a failure: keep the sender and try the next frame later; it resumes when the receiver does. A render sender’s begin-frame does not report it: it waits through the pause.

Source

pub const QAR_STATUS_MEDIA_STREAMING_DEVICE_ON_ANOTHER_ADAPTER: QarStatusCode

The application’s own graphics device (QarStreamParamsVulkan, or the D3D11 device in QarStreamParamsD3D11) is on another GPU than the session’s. Nothing was created. Create the device on the adapter qar_session_get_graphics_device_id() reports.

Source

pub const QAR_STATUS_GRAPHICS_DEVICE_NOT_INITIALIZED: QarStatusCode

The session was created with QarGraphicsDeviceDisabledExt, so it has no graphics device: it streams no media and reports no graphics adapter. Nothing was created. Final for this session; onboard or rejoin without the extension to stream.

Source

pub const QAR_STATUS_RENDERING_PRODUCER_MISSING_POSE_DATA: QarStatusCode

No head pose has arrived from the viewer yet, so there is no pose to render with. Recoverable: qar_render_sender_next_render_pose() succeeds once the viewer’s first pose is in.

Source

pub const QAR_STATUS_RENDERING_PRODUCER_UNABLE_TO_DO_BEGIN_FRAME: QarStatusCode

No head pose has arrived from the viewer yet, so there is no pose to render with. Recoverable: qar_render_sender_next_render_pose() succeeds once the viewer’s first pose is in.

Source

pub const QAR_STATUS_RENDERING_PRODUCER_STREAM_IS_CLOSED: QarStatusCode

No head pose has arrived from the viewer yet, so there is no pose to render with. Recoverable: qar_render_sender_next_render_pose() succeeds once the viewer’s first pose is in.

Source

pub const QAR_STATUS_RENDERING_PRODUCER_APP_VOLUME_UNRESOLVED: QarStatusCode

The render sender’s app volume does not resolve - it is not known to this session yet, or it was removed - so app content space is undefined and no frame was begun. Nothing is handed out in room space instead. Recoverable: keep calling begin-frame, it succeeds once the volume resolves. A volume that was removed never does; recreate it.

Source

pub const QAR_STATUS_RENDERING_PRODUCER_DEPTH_FORMAT_NOT_SUPPORTED: QarStatusCode

QarRenderSenderInit::depth_format names a format the chosen graphics_api cannot take as a depth plane. Returned by qar_render_sender_create() before any receiver is waited for; nothing was created. The result’s message lists the accepted formats.

Source

pub const QAR_STATUS_RENDERING_PRODUCER_EXTERNAL_DEVICE_NOT_SUPPORTED: QarStatusCode

The device in the graphics extension of QarRenderSenderInit lacks what sharing the sender’s images needs. For QAR_GRAPHICS_API_VULKAN: VK_KHR_external_memory_win32 and VK_KHR_external_semaphore_win32 on Windows, their fd equivalents elsewhere, enabled when the application created its VkDevice. Returned by qar_render_sender_create() before any receiver is waited for; nothing was created. The result’s message names what is missing.

Source

pub const QAR_STATUS_PAKE_ERROR: QarStatusCode

Code-based onboarding handshake rejected / expired / timed out: a wrong, spent or expired code, or a code that is no device pairing code (a hub join code). Retry with a fresh code.

Source

pub const QAR_STATUS_ONBOARDING_SESSION_NOT_FOUND: QarStatusCode

No persisted state for the provided onboarding id — fall back to a full onboard (qar_runtime_onboard).

Source

pub const QAR_STATUS_ONBOARDING_FAILED: QarStatusCode

Generic onboarding failure. Inspect qar_result_message for details.

Source

pub const QAR_STATUS_ONBOARDING_HUB_UNREACHABLE: QarStatusCode

Discovery could not reach a hub — verify the hub is running (and, when a QarOnboardHostExt is chained, the hostname/port) and retry. Without QarOnboardHostExt: no hub of this user was found; pass its host:port.

Source

pub const QAR_STATUS_ONBOARDING_SESSION_STILL_ACTIVE: QarStatusCode

qar_runtime_forget was called while the slot still has an active session — destroy the active session handle first.

Source

pub const QAR_STATUS_ONBOARDING_APPROVAL_DENIED: QarStatusCode

Local enrollment: the user denied the app in the QAROS hub, or its approval was revoked. Stop and tell the user.

Source

pub const QAR_STATUS_ONBOARDING_APPROVAL_TIMEOUT: QarStatusCode

Local enrollment: nobody answered the approval prompt in time. Offer a retry.

Source

pub const QAR_STATUS_ONBOARDING_HUB_NOT_AUTHENTIC: QarStatusCode

Local enrollment: the process serving the enrollment pipe is not the installed QAROS hub. Stop; do not retry silently.

Source

pub const QAR_STATUS_ONBOARDING_APP_IDENTITY_MISMATCH: QarStatusCode

Local enrollment: the app no longer matches what the user approved (moved, re-signed, tampered). Ask the user to revoke and re-approve it.

Source

pub const QAR_STATUS_ONBOARDING_RE_PAIR_REQUIRED: QarStatusCode

The device’s certificate expired, or its hub no longer renews it (it missed more than two session rotations, or was revoked), and the pairing credential given did not replace it. Tell the user to pair the device again with a new code from the hub; retrying does not help.

Source

pub const QAR_STATUS_ONBOARDING_RENEWAL_POSSESSION_UNPROVEN: QarStatusCode

The hub refused to renew the certificate: the renewal did not prove it holds the key of the certificate it renews. This SDK makes that proof itself, so the stored identity is damaged: pair the device again. An SDK older than the hub never makes the proof and cannot renew there; update the app or device, pairing again is not enough.

Source

pub const QAR_STATUS_ONBOARDING_INVITE_REFUSED: QarStatusCode

The hub refused qar_session_request_onboarding_invite: it mints a co-process invite only for a local app it enrolled on its own PC (local enrollment) or a process its launcher started. A device, or an app that joined with a code or an invite, gets none. Final; nothing was minted.

Source

pub const QAR_STATUS_HUB_TARGET_APP_DEVICE_NOT_INVITABLE: QarStatusCode

The hub has no target app it can launch for the requested device (an unknown connection-string scheme family, or a device kind that is never invited, such as a camera). Nothing was invited; pick another target.

Source

pub const QAR_STATUS_PEER_DEVICE_CATEGORY_NOT_ALLOWED: QarStatusCode

A QarPeerDeviceIdentity declared a category an application may not claim. An application is always a source and may describe itself only as QAR_DEVICE_CATEGORY_DESKTOP_PC, QAR_DEVICE_CATEGORY_SERVER or QAR_DEVICE_CATEGORY_CAMERA. Nothing was changed.

Source

pub const QAR_STATUS_HUB_LIFECYCLE_OPERATION_RUNNING: QarStatusCode

The hub is in the middle of another session-wide operation (a session rotation, a member join, a leave). Retry once it has finished.

Source

pub const QAR_STATUS_MEMBER_JOIN_PENDING: QarStatusCode

Member join: the primary hub has the join request and waits for its operator to allow it. Not a failure; ask again later.

Source

pub const QAR_STATUS_MEMBER_JOIN_DENIED: QarStatusCode

Member join: the primary hub’s operator denied the join request.

Source

pub const QAR_STATUS_MEMBER_JOIN_REFUSED: QarStatusCode

Member join: the primary hub refused the join request outright, for example because the joining hub hosts members of its own. qar_result_message names the reason.

Source

pub const QAR_STATUS_MEMBER_JOIN_REDIRECTED: QarStatusCode

Member join: the asked hub is itself a member of another hub; ask that primary hub instead.

Source

pub const QAR_STATUS_MEMBER_REMOVED: QarStatusCode

Member join: the primary hub removed this member hub; it has to join again.

Source

pub const QAR_STATUS_PRIMARY_UNREACHABLE: QarStatusCode

A member hub could not reach its primary hub.

Source

pub const QAR_STATUS_SESSION_WIDE_ACTION_ON_MEMBER: QarStatusCode

A session-wide action was asked of a member hub; only the primary hub performs it.

Source

pub const QAR_STATUS_MEMBER_SPONSOR_NOT_ALLOWED: QarStatusCode

Member-hub invitation: the app’s approval on the primary hub does not allow it to bring in member hubs. The primary’s operator grants that right on the approval.

Source

pub const QAR_STATUS_MEMBER_SPONSOR_QUOTA_EXCEEDED: QarStatusCode

Member-hub invitation: the app’s approval has used its quota of member hubs.

Source

pub const QAR_STATUS_AUDIT_LOG_CORRUPT: QarStatusCode

A hub’s audit log does not verify: a record was edited, dropped or reordered.

Source

pub const QAR_STATUS_SECURE_STORAGE_ERROR: QarStatusCode

Secure storage: the encrypted store holding the peer’s identity and session failed for a reason the codes below do not name (an I/O error). qar_result_message says what failed.

Source

pub const QAR_STATUS_SECURE_STORAGE_NOT_FOUND: QarStatusCode

Secure storage: the value asked for is not stored.

Source

pub const QAR_STATUS_SECURE_STORAGE_TAMPERED: QarStatusCode

Secure storage: a stored value does not authenticate; it was edited, moved or replaced by an older copy.

Source

pub const QAR_STATUS_SECURE_STORAGE_PROTECTOR_MISMATCH: QarStatusCode

Secure storage: the stored data is protected by a key this machine, user or install does not have (for example a store copied from another PC). Onboard the peer again.

Source

pub const QAR_STATUS_SECURE_STORAGE_PROTECTOR_UNAVAILABLE: QarStatusCode

Secure storage: the key protecting the store exists but cannot be used now (TPM cleared or locked out, keyring locked).

Source

pub const QAR_STATUS_SECURE_STORAGE_INVALID_KEY: QarStatusCode

Secure storage: an invalid storage key (an internal error).

Source

pub const QAR_STATUS_SECURE_STORAGE_LOCKED: QarStatusCode

Secure storage: another process held the store’s lock too long. Retrying may succeed.

Source

pub const QAR_STATUS_MEMBER_INVITATION_INVALID: QarStatusCode

Member-hub invitation: the invitation does not parse, its signature, kind or version is wrong, or the primary hub does not know it or judged its proof invalid.

Source

pub const QAR_STATUS_MEMBER_INVITATION_EXPIRED: QarStatusCode

Member-hub invitation: the invitation has expired. Ask for a new one.

Source

pub const QAR_STATUS_MEMBER_INVITATION_USED_UP: QarStatusCode

Member-hub invitation: the invitation was used as often as it allows.

Source

pub const QAR_STATUS_MEMBER_INVITATION_REVOKED: QarStatusCode

Member-hub invitation: the primary hub’s operator revoked it.

Source

pub const QAR_STATUS_MEMBER_INVITATION_PRIMARY_NOT_ALLOWED: QarStatusCode

Member-hub invitation: the invitation’s primary hub is not in this PC’s administrator allow-list, or is not the primary hub this PC’s hub joined first.

Source

pub const QAR_STATUS_MEMBER_INVITATION_POLICY_NOT_PROTECTED: QarStatusCode

Member-hub invitation: this PC’s member-invitation policy (registry key or file) can be written by a non-administrator, so every invitation is refused until an administrator fixes its permissions.

Trait Implementations§

Source§

impl Clone for QarStatusCode

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 QarStatusCode

Source§

impl Debug for QarStatusCode

Source§

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

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

impl Eq for QarStatusCode

Source§

impl Hash for QarStatusCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for QarStatusCode

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 QarStatusCode

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.