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

QarOnboardLocalAppExt

Struct QarOnboardLocalAppExt 

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

@brief Extension: join the QAROS hub installed on this PC as a local source app, with no code.

Chain into QarOnboardInit.header.next as the only mode extension. The hub identifies the calling process from Windows (its executable, signature and user), asks the user once (“Allow to join QAROS?”), and signs a 30-minute certificate for a key that exists only in this process’s memory. Later starts of the same app join silently while it still matches what the user approved. The runtime renews the certificate before it expires.

  • Joins the hub of the QAROS installation this runtime belongs to: the QAR_INSTANCE environment variable when set, else the installation holding the loaded qar-streaming-c, else the installed (HKLM) one. The hub’s qar-runtime-launcher must run as this user in this Windows session, from that installation’s bin/, signed with the QAROS key pinned in the runtime; otherwise QAR_STATUS_ONBOARDING_HUB_NOT_AUTHENTIC.
  • Stateless: writes nothing to disk; out_onboarding_id is the zero id. qar_runtime_rejoin and qar_runtime_forget do not apply.
  • Not combinable with QarOnboardHostExt (local only) or QarOnboardPeerIdExt (the hub assigns the peer id): QAR_STATUS_ARGUMENT_NOT_SUPPORTED.
  • The progress callback reports “Waiting for approval in QAROS hub” while the prompt is open.
  • Starts the QAROS hub when it does not run: qaros.exe from the installation’s bin/, else from QarRuntimeInit::runtime_binaries_folder_path. A running hub is left as it is, and the hub outlives the app.
  • Windows only; QAR_STATUS_NOT_IMPLEMENTED elsewhere.

Fields§

§header: QarStructureHeader

< QAR_STRUCTURE_TYPE_RUNTIME_ONBOARD_LOCAL_APP_EXT

§approval_timeout_ms: u32

Max wait for the user’s first-time approval; 0 -> hub default (120 s).

Trait Implementations§

Source§

impl Clone for QarOnboardLocalAppExt

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 QarOnboardLocalAppExt

Source§

impl Debug for QarOnboardLocalAppExt

Source§

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

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

impl PartialEq for QarOnboardLocalAppExt

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 QarOnboardLocalAppExt

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.