pub struct StatusCode(/* private fields */);Expand description
A QarStatusCode as returned by the C API.
Implementations§
Source§impl StatusCode
impl StatusCode
pub const SUCCESS: Self
pub const UNCLASSIFIED: Self
pub const NOT_IMPLEMENTED: Self
pub const ARGUMENT_NOT_SUPPORTED: Self
pub const TIMEOUT: Self
pub const LOGIC_ERROR: Self
pub const GUI_PANEL_INVALID_ID: Self
pub const APP_VOLUME_INVALID_ID: Self
Sourcepub const RENDERING_MISSING_POSE_DATA: Self
pub const RENDERING_MISSING_POSE_DATA: Self
No head pose has arrived from the viewer yet, so there is no pose to render with.
Recoverable: crate::RenderSender::next_render_pose succeeds once the viewer’s first
pose is in.
pub const RENDERING_UNABLE_TO_BEGIN_FRAME: Self
pub const RENDERING_STREAM_IS_CLOSED: Self
Sourcepub const MEDIA_STREAMING_STREAM_IS_PAUSED: Self
pub const MEDIA_STREAMING_STREAM_IS_PAUSED: Self
The receiver paused the stream. Not a failure; a render sender’s begin-frame waits through a pause instead of reporting it.
pub const MEDIA_STREAMING_STREAM_IS_RECONNECTING: Self
pub const MEDIA_STREAMING_NO_ACTIVE_TRANSFERS: Self
Sourcepub const RENDERING_APP_VOLUME_UNRESOLVED: Self
pub const RENDERING_APP_VOLUME_UNRESOLVED: Self
The sender’s app volume is not known (yet) where the receiver runs. Recoverable: keep calling begin-frame; a volume that was removed never resolves.
Sourcepub const RENDERING_DEPTH_FORMAT_NOT_SUPPORTED: Self
pub const RENDERING_DEPTH_FORMAT_NOT_SUPPORTED: Self
The render sender’s depth format is one its graphics API cannot take; returned by the creation before any receiver is waited for, with the accepted formats in the message.
Sourcepub const RENDERING_EXTERNAL_DEVICE_NOT_SUPPORTED: Self
pub const RENDERING_EXTERNAL_DEVICE_NOT_SUPPORTED: Self
The device given for a Vulkan render sender lacks the external memory and semaphore extensions sharing its images needs; returned by the creation before any receiver is waited for, with what is missing in the message.
pub const PAKE_ERROR: Self
pub const ONBOARDING_SESSION_NOT_FOUND: Self
pub const ONBOARDING_FAILED: Self
pub const ONBOARDING_HUB_UNREACHABLE: Self
pub const ONBOARDING_SESSION_STILL_ACTIVE: Self
pub const ONBOARDING_APPROVAL_DENIED: Self
pub const ONBOARDING_APPROVAL_TIMEOUT: Self
pub const ONBOARDING_HUB_NOT_AUTHENTIC: Self
pub const ONBOARDING_APP_IDENTITY_MISMATCH: Self
Sourcepub const ONBOARDING_RE_PAIR_REQUIRED: Self
pub const ONBOARDING_RE_PAIR_REQUIRED: Self
The device’s certificate expired or is no longer renewed, and the pairing credential given did not replace it: pair the device again with a new code.
Sourcepub const ONBOARDING_RENEWAL_POSSESSION_UNPROVEN: Self
pub const ONBOARDING_RENEWAL_POSSESSION_UNPROVEN: Self
The hub refused to renew the certificate because the renewal did not prove it holds the certificate’s key: update to the current SDK, else pair again.
Sourcepub const ONBOARDING_INVITE_REFUSED: Self
pub const ONBOARDING_INVITE_REFUSED: Self
The hub refused to mint a co-process invite: this session did not join as a local app (or as an app the QAROS launcher started). Final; nothing was minted.
pub const GUI_PANEL_CHANGE_NOT_PERMITTED: Self
Sourcepub const GUI_PANEL_DISPLAY_NAME_INVALID: Self
pub const GUI_PANEL_DISPLAY_NAME_INVALID: Self
A GUI panel display name was refused: more than 64 Unicode code points, not valid UTF-8, or holding a control or bidirectional formatting character. The panel keeps its previous name.
pub const PANEL_CONTENT_BUNDLE_REFUSED: Self
pub const PANEL_CONTENT_PATH_REFUSED: Self
pub const PANEL_CONTENT_MIME_REFUSED: Self
pub const PANEL_CONTENT_SIZE_REFUSED: Self
pub const PANEL_CONTENT_NOT_PUBLISHER: Self
pub const PANEL_CONTENT_NOT_FOUND: Self
pub const PANEL_CONTENT_MESSAGE_REFUSED: Self
pub const APP_VOLUME_GESTURE_CONFIGURATION_INVALID: Self
pub const APP_VOLUME_GESTURE_MODE_UNKNOWN: Self
pub const MEDIA_STREAMING_DESTINATION_RESERVATION_FAILED: Self
pub const MEDIA_STREAMING_SEND_PIPELINE_FAILED: Self
pub const MEDIA_STREAMING_LAYOUT_CHANGE_FAILED: Self
Sourcepub const MEDIA_STREAMING_DEVICE_ON_ANOTHER_ADAPTER: Self
pub const MEDIA_STREAMING_DEVICE_ON_ANOTHER_ADAPTER: Self
The application’s own graphics device given to a sender or receiver is on another GPU
than the session’s; nothing was created, and the message names both adapters. Create the
device on the adapter crate::Session::graphics_adapter reports.
Sourcepub const GRAPHICS_DEVICE_NOT_INITIALIZED: Self
pub const GRAPHICS_DEVICE_NOT_INITIALIZED: Self
The session was created without a graphics device
(crate::OnboardExtensions::without_graphics_device): it streams no media and reports
no adapter, so a render sender’s creation, its render requests, a video sender and
crate::Session::graphics_adapter fail with this code. Nothing was created. Final for
the session; onboard without the extension to stream.
pub const HUB_TARGET_APP_DEVICE_NOT_INVITABLE: Self
Sourcepub const PEER_DEVICE_CATEGORY_NOT_ALLOWED: Self
pub const PEER_DEVICE_CATEGORY_NOT_ALLOWED: Self
A declared device category other than desktop PC, server or camera.
Sourcepub const HUB_LIFECYCLE_OPERATION_RUNNING: Self
pub const HUB_LIFECYCLE_OPERATION_RUNNING: Self
The hub is in the middle of another session-wide operation; retry.
pub const MEMBER_JOIN_PENDING: Self
pub const MEMBER_JOIN_DENIED: Self
Sourcepub const MEMBER_JOIN_REFUSED: Self
pub const MEMBER_JOIN_REFUSED: Self
The hub on this PC hosts members of its own, is a member of another primary, or the invitation does not permit the join; the message names the reason.
pub const MEMBER_JOIN_REDIRECTED: Self
Sourcepub const MEMBER_REMOVED: Self
pub const MEMBER_REMOVED: Self
The primary removed this hub and the invitation does not permit readmitting it.
Sourcepub const PRIMARY_UNREACHABLE: Self
pub const PRIMARY_UNREACHABLE: Self
None of the invitation’s addresses of the primary hub answers.
Sourcepub const SESSION_WIDE_ACTION_ON_MEMBER: Self
pub const SESSION_WIDE_ACTION_ON_MEMBER: Self
The hub on this PC is a member: create the member-hub invitation on its primary’s PC.
Sourcepub const MEMBER_SPONSOR_NOT_ALLOWED: Self
pub const MEMBER_SPONSOR_NOT_ALLOWED: Self
The app’s approval does not allow it to bring in member hubs.
Sourcepub const MEMBER_SPONSOR_QUOTA_EXCEEDED: Self
pub const MEMBER_SPONSOR_QUOTA_EXCEEDED: Self
The app’s approval has used its quota of member hubs.
pub const AUDIT_LOG_CORRUPT: Self
pub const SECURE_STORAGE_ERROR: Self
pub const SECURE_STORAGE_NOT_FOUND: Self
pub const SECURE_STORAGE_TAMPERED: Self
pub const SECURE_STORAGE_PROTECTOR_MISMATCH: Self
pub const SECURE_STORAGE_PROTECTOR_UNAVAILABLE: Self
pub const SECURE_STORAGE_INVALID_KEY: Self
pub const SECURE_STORAGE_LOCKED: Self
Sourcepub const MEMBER_INVITATION_INVALID: Self
pub const MEMBER_INVITATION_INVALID: Self
The member-hub invitation’s signature is wrong, its bytes are no invitation, or the primary does not know it.
Sourcepub const MEMBER_INVITATION_EXPIRED: Self
pub const MEMBER_INVITATION_EXPIRED: Self
Ask the primary’s app for a new member-hub invitation.
Sourcepub const MEMBER_INVITATION_USED_UP: Self
pub const MEMBER_INVITATION_USED_UP: Self
Ask the primary’s app for a new member-hub invitation.
Sourcepub const MEMBER_INVITATION_REVOKED: Self
pub const MEMBER_INVITATION_REVOKED: Self
Ask the primary’s app for a new member-hub invitation.
Sourcepub const MEMBER_INVITATION_PRIMARY_NOT_ALLOWED: Self
pub const MEMBER_INVITATION_PRIMARY_NOT_ALLOWED: Self
This PC does not trust the invitation’s primary hub.
Sourcepub const MEMBER_INVITATION_POLICY_NOT_PROTECTED: Self
pub const MEMBER_INVITATION_POLICY_NOT_PROTECTED: Self
This PC’s member-invitation policy can be written by a non-administrator.
Sourcepub fn raw(self) -> QarStatusCode
pub fn raw(self) -> QarStatusCode
The raw qaros_sys code, for calls through crate::Library::raw_api.
Sourcepub fn name(self) -> Option<&'static str>
pub fn name(self) -> Option<&'static str>
The header’s name without the QAR_STATUS_ prefix, or None for a
code this crate does not name.
Sourcepub fn user_action(self) -> Option<&'static str>
pub fn user_action(self) -> Option<&'static str>
What the user has to do about a local-app enrollment refusal
(crate::OnboardMethod::LocalApp); None for every other code.
Source§impl StatusCode
impl StatusCode
Sourcepub const WRAPPED_CAUSES: [Self; 5]
pub const WRAPPED_CAUSES: [Self; 5]
The causes an Error::Api records when the result wraps them, read at the failing
call because the C result’s cause chain is not kept.