#[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_intImplementations§
Source§impl QarStatusCode
impl QarStatusCode
pub const QAR_STATUS_SUCCESS: QarStatusCode
pub const QAR_STATUS_UNCLASSIFIED: QarStatusCode
pub const QAR_STATUS_NOT_IMPLEMENTED: QarStatusCode
pub const QAR_STATUS_ARGUMENT_NOT_SUPPORTED: QarStatusCode
pub const QAR_STATUS_TIMEOUT: QarStatusCode
pub const QAR_STATUS_LOGIC_ERROR: QarStatusCode
pub const QAR_STATUS_GUI_PANEL_CHANGE_NOT_PERMITTED: QarStatusCode
pub const QAR_STATUS_GUI_PANEL_INVALID_ID: QarStatusCode
Sourcepub const QAR_STATUS_GUI_PANEL_DISPLAY_NAME_INVALID: QarStatusCode
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.
Sourcepub const QAR_STATUS_PANEL_CONTENT_BUNDLE_REFUSED: QarStatusCode
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 ‘-’.
Sourcepub const QAR_STATUS_PANEL_CONTENT_PATH_REFUSED: QarStatusCode
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.
Sourcepub const QAR_STATUS_PANEL_CONTENT_MIME_REFUSED: QarStatusCode
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.
Sourcepub const QAR_STATUS_PANEL_CONTENT_SIZE_REFUSED: QarStatusCode
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.
Sourcepub const QAR_STATUS_PANEL_CONTENT_NOT_PUBLISHER: QarStatusCode
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.
Sourcepub const QAR_STATUS_PANEL_CONTENT_NOT_FOUND: QarStatusCode
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.
Sourcepub const QAR_STATUS_PANEL_CONTENT_MESSAGE_REFUSED: QarStatusCode
pub const QAR_STATUS_PANEL_CONTENT_MESSAGE_REFUSED: QarStatusCode
A panel message is not one JSON value or is larger than 64 KiB.
Sourcepub const QAR_STATUS_APP_VOLUME_INVALID_ID: QarStatusCode
pub const QAR_STATUS_APP_VOLUME_INVALID_ID: QarStatusCode
A panel message is not one JSON value or is larger than 64 KiB.
Sourcepub const QAR_STATUS_APP_VOLUME_GESTURE_CONFIGURATION_INVALID: QarStatusCode
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.
Sourcepub const QAR_STATUS_APP_VOLUME_GESTURE_MODE_UNKNOWN: QarStatusCode
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().
Sourcepub const QAR_STATUS_MEDIA_STREAMING_STREAM_IS_PAUSED: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEDIA_STREAMING_STREAM_IS_RECONNECTING: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEDIA_STREAMING_NO_ACTIVE_TRANSFERS: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEDIA_STREAMING_DESTINATION_RESERVATION_FAILED: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEDIA_STREAMING_SEND_PIPELINE_FAILED: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEDIA_STREAMING_LAYOUT_CHANGE_FAILED: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEDIA_STREAMING_DEVICE_ON_ANOTHER_ADAPTER: QarStatusCode
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.
Sourcepub const QAR_STATUS_GRAPHICS_DEVICE_NOT_INITIALIZED: QarStatusCode
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.
Sourcepub const QAR_STATUS_RENDERING_PRODUCER_MISSING_POSE_DATA: QarStatusCode
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.
Sourcepub const QAR_STATUS_RENDERING_PRODUCER_UNABLE_TO_DO_BEGIN_FRAME: QarStatusCode
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.
Sourcepub const QAR_STATUS_RENDERING_PRODUCER_STREAM_IS_CLOSED: QarStatusCode
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.
Sourcepub const QAR_STATUS_RENDERING_PRODUCER_APP_VOLUME_UNRESOLVED: QarStatusCode
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.
Sourcepub const QAR_STATUS_RENDERING_PRODUCER_DEPTH_FORMAT_NOT_SUPPORTED: QarStatusCode
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.
Sourcepub const QAR_STATUS_RENDERING_PRODUCER_EXTERNAL_DEVICE_NOT_SUPPORTED: QarStatusCode
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.
Sourcepub const QAR_STATUS_PAKE_ERROR: QarStatusCode
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.
Sourcepub const QAR_STATUS_ONBOARDING_SESSION_NOT_FOUND: QarStatusCode
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).
Sourcepub const QAR_STATUS_ONBOARDING_FAILED: QarStatusCode
pub const QAR_STATUS_ONBOARDING_FAILED: QarStatusCode
Generic onboarding failure. Inspect qar_result_message for details.
Sourcepub const QAR_STATUS_ONBOARDING_HUB_UNREACHABLE: QarStatusCode
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.
Sourcepub const QAR_STATUS_ONBOARDING_SESSION_STILL_ACTIVE: QarStatusCode
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.
Sourcepub const QAR_STATUS_ONBOARDING_APPROVAL_DENIED: QarStatusCode
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.
Sourcepub const QAR_STATUS_ONBOARDING_APPROVAL_TIMEOUT: QarStatusCode
pub const QAR_STATUS_ONBOARDING_APPROVAL_TIMEOUT: QarStatusCode
Local enrollment: nobody answered the approval prompt in time. Offer a retry.
Sourcepub const QAR_STATUS_ONBOARDING_HUB_NOT_AUTHENTIC: QarStatusCode
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.
Sourcepub const QAR_STATUS_ONBOARDING_APP_IDENTITY_MISMATCH: QarStatusCode
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.
Sourcepub const QAR_STATUS_ONBOARDING_RE_PAIR_REQUIRED: QarStatusCode
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.
Sourcepub const QAR_STATUS_ONBOARDING_RENEWAL_POSSESSION_UNPROVEN: QarStatusCode
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.
Sourcepub const QAR_STATUS_ONBOARDING_INVITE_REFUSED: QarStatusCode
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.
Sourcepub const QAR_STATUS_HUB_TARGET_APP_DEVICE_NOT_INVITABLE: QarStatusCode
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.
Sourcepub const QAR_STATUS_PEER_DEVICE_CATEGORY_NOT_ALLOWED: QarStatusCode
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.
Sourcepub const QAR_STATUS_HUB_LIFECYCLE_OPERATION_RUNNING: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEMBER_JOIN_PENDING: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEMBER_JOIN_DENIED: QarStatusCode
pub const QAR_STATUS_MEMBER_JOIN_DENIED: QarStatusCode
Member join: the primary hub’s operator denied the join request.
Sourcepub const QAR_STATUS_MEMBER_JOIN_REFUSED: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEMBER_JOIN_REDIRECTED: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEMBER_REMOVED: QarStatusCode
pub const QAR_STATUS_MEMBER_REMOVED: QarStatusCode
Member join: the primary hub removed this member hub; it has to join again.
Sourcepub const QAR_STATUS_PRIMARY_UNREACHABLE: QarStatusCode
pub const QAR_STATUS_PRIMARY_UNREACHABLE: QarStatusCode
A member hub could not reach its primary hub.
Sourcepub const QAR_STATUS_SESSION_WIDE_ACTION_ON_MEMBER: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEMBER_SPONSOR_NOT_ALLOWED: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEMBER_SPONSOR_QUOTA_EXCEEDED: QarStatusCode
pub const QAR_STATUS_MEMBER_SPONSOR_QUOTA_EXCEEDED: QarStatusCode
Member-hub invitation: the app’s approval has used its quota of member hubs.
Sourcepub const QAR_STATUS_AUDIT_LOG_CORRUPT: QarStatusCode
pub const QAR_STATUS_AUDIT_LOG_CORRUPT: QarStatusCode
A hub’s audit log does not verify: a record was edited, dropped or reordered.
Sourcepub const QAR_STATUS_SECURE_STORAGE_ERROR: QarStatusCode
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.
Sourcepub const QAR_STATUS_SECURE_STORAGE_NOT_FOUND: QarStatusCode
pub const QAR_STATUS_SECURE_STORAGE_NOT_FOUND: QarStatusCode
Secure storage: the value asked for is not stored.
Sourcepub const QAR_STATUS_SECURE_STORAGE_TAMPERED: QarStatusCode
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.
Sourcepub const QAR_STATUS_SECURE_STORAGE_PROTECTOR_MISMATCH: QarStatusCode
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.
Sourcepub const QAR_STATUS_SECURE_STORAGE_PROTECTOR_UNAVAILABLE: QarStatusCode
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).
Sourcepub const QAR_STATUS_SECURE_STORAGE_INVALID_KEY: QarStatusCode
pub const QAR_STATUS_SECURE_STORAGE_INVALID_KEY: QarStatusCode
Secure storage: an invalid storage key (an internal error).
Sourcepub const QAR_STATUS_SECURE_STORAGE_LOCKED: QarStatusCode
pub const QAR_STATUS_SECURE_STORAGE_LOCKED: QarStatusCode
Secure storage: another process held the store’s lock too long. Retrying may succeed.
Sourcepub const QAR_STATUS_MEMBER_INVITATION_INVALID: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEMBER_INVITATION_EXPIRED: QarStatusCode
pub const QAR_STATUS_MEMBER_INVITATION_EXPIRED: QarStatusCode
Member-hub invitation: the invitation has expired. Ask for a new one.
Sourcepub const QAR_STATUS_MEMBER_INVITATION_USED_UP: QarStatusCode
pub const QAR_STATUS_MEMBER_INVITATION_USED_UP: QarStatusCode
Member-hub invitation: the invitation was used as often as it allows.
Sourcepub const QAR_STATUS_MEMBER_INVITATION_REVOKED: QarStatusCode
pub const QAR_STATUS_MEMBER_INVITATION_REVOKED: QarStatusCode
Member-hub invitation: the primary hub’s operator revoked it.
Sourcepub const QAR_STATUS_MEMBER_INVITATION_PRIMARY_NOT_ALLOWED: QarStatusCode
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.
Sourcepub const QAR_STATUS_MEMBER_INVITATION_POLICY_NOT_PROTECTED: QarStatusCode
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.