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

StatusCode

Struct StatusCode 

Source
pub struct StatusCode(/* private fields */);
Expand description

A QarStatusCode as returned by the C API.

Implementations§

Source§

impl StatusCode

Source

pub const SUCCESS: Self

Source

pub const UNCLASSIFIED: Self

Source

pub const NOT_IMPLEMENTED: Self

Source

pub const ARGUMENT_NOT_SUPPORTED: Self

Source

pub const TIMEOUT: Self

Source

pub const LOGIC_ERROR: Self

Source

pub const GUI_PANEL_INVALID_ID: Self

Source

pub const APP_VOLUME_INVALID_ID: Self

Source

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.

Source

pub const RENDERING_UNABLE_TO_BEGIN_FRAME: Self

Source

pub const RENDERING_STREAM_IS_CLOSED: Self

Source

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.

Source

pub const MEDIA_STREAMING_STREAM_IS_RECONNECTING: Self

Source

pub const MEDIA_STREAMING_NO_ACTIVE_TRANSFERS: Self

Source

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.

Source

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.

Source

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.

Source

pub const PAKE_ERROR: Self

Source

pub const ONBOARDING_SESSION_NOT_FOUND: Self

Source

pub const ONBOARDING_FAILED: Self

Source

pub const ONBOARDING_HUB_UNREACHABLE: Self

Source

pub const ONBOARDING_SESSION_STILL_ACTIVE: Self

Source

pub const ONBOARDING_APPROVAL_DENIED: Self

Source

pub const ONBOARDING_APPROVAL_TIMEOUT: Self

Source

pub const ONBOARDING_HUB_NOT_AUTHENTIC: Self

Source

pub const ONBOARDING_APP_IDENTITY_MISMATCH: Self

Source

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.

Source

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.

Source

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.

Source

pub const GUI_PANEL_CHANGE_NOT_PERMITTED: Self

Source

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.

Source

pub const PANEL_CONTENT_BUNDLE_REFUSED: Self

Source

pub const PANEL_CONTENT_PATH_REFUSED: Self

Source

pub const PANEL_CONTENT_MIME_REFUSED: Self

Source

pub const PANEL_CONTENT_SIZE_REFUSED: Self

Source

pub const PANEL_CONTENT_NOT_PUBLISHER: Self

Source

pub const PANEL_CONTENT_NOT_FOUND: Self

Source

pub const PANEL_CONTENT_MESSAGE_REFUSED: Self

Source

pub const APP_VOLUME_GESTURE_CONFIGURATION_INVALID: Self

Source

pub const APP_VOLUME_GESTURE_MODE_UNKNOWN: Self

Source

pub const MEDIA_STREAMING_DESTINATION_RESERVATION_FAILED: Self

Source

pub const MEDIA_STREAMING_SEND_PIPELINE_FAILED: Self

Source

pub const MEDIA_STREAMING_LAYOUT_CHANGE_FAILED: Self

Source

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.

Source

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.

Source

pub const HUB_TARGET_APP_DEVICE_NOT_INVITABLE: Self

Source

pub const PEER_DEVICE_CATEGORY_NOT_ALLOWED: Self

A declared device category other than desktop PC, server or camera.

Source

pub const HUB_LIFECYCLE_OPERATION_RUNNING: Self

The hub is in the middle of another session-wide operation; retry.

Source

pub const MEMBER_JOIN_PENDING: Self

Source

pub const MEMBER_JOIN_DENIED: Self

Source

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.

Source

pub const MEMBER_JOIN_REDIRECTED: Self

Source

pub const MEMBER_REMOVED: Self

The primary removed this hub and the invitation does not permit readmitting it.

Source

pub const PRIMARY_UNREACHABLE: Self

None of the invitation’s addresses of the primary hub answers.

Source

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.

Source

pub const MEMBER_SPONSOR_NOT_ALLOWED: Self

The app’s approval does not allow it to bring in member hubs.

Source

pub const MEMBER_SPONSOR_QUOTA_EXCEEDED: Self

The app’s approval has used its quota of member hubs.

Source

pub const AUDIT_LOG_CORRUPT: Self

Source

pub const SECURE_STORAGE_ERROR: Self

Source

pub const SECURE_STORAGE_NOT_FOUND: Self

Source

pub const SECURE_STORAGE_TAMPERED: Self

Source

pub const SECURE_STORAGE_PROTECTOR_MISMATCH: Self

Source

pub const SECURE_STORAGE_PROTECTOR_UNAVAILABLE: Self

Source

pub const SECURE_STORAGE_INVALID_KEY: Self

Source

pub const SECURE_STORAGE_LOCKED: Self

Source

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.

Source

pub const MEMBER_INVITATION_EXPIRED: Self

Ask the primary’s app for a new member-hub invitation.

Source

pub const MEMBER_INVITATION_USED_UP: Self

Ask the primary’s app for a new member-hub invitation.

Source

pub const MEMBER_INVITATION_REVOKED: Self

Ask the primary’s app for a new member-hub invitation.

Source

pub const MEMBER_INVITATION_PRIMARY_NOT_ALLOWED: Self

This PC does not trust the invitation’s primary hub.

Source

pub const MEMBER_INVITATION_POLICY_NOT_PROTECTED: Self

This PC’s member-invitation policy can be written by a non-administrator.

Source

pub fn raw(self) -> QarStatusCode

The raw qaros_sys code, for calls through crate::Library::raw_api.

Source

pub fn value(self) -> i64

Numeric value of the code.

Source

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.

Source

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

Source

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.

Trait Implementations§

Source§

impl Clone for StatusCode

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 StatusCode

Source§

impl Debug for StatusCode

Source§

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

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

impl Display for StatusCode

Source§

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

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

impl Eq for StatusCode

Source§

impl Hash for StatusCode

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 StatusCode

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 StatusCode

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.