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

LookupOutcome

Enum LookupOutcome 

Source
pub enum LookupOutcome {
    NotApplicable,
    Missing {
        path: PathBuf,
    },
    FailedToLoad {
        path: PathBuf,
        message: String,
    },
    InvalidInstanceName {
        name: String,
    },
    UnknownInstance {
        name: String,
    },
    InstanceRuntimeNotLoadable {
        name: String,
        path: PathBuf,
        message: Option<String>,
    },
}
Expand description

What the lookup met at one place.

Variants§

§

NotApplicable

Nothing to look at: no runtime loaded, the binding’s folder unknown, QAR_INSTANCE unset (or not read, outside Windows), QAROS not installed, or no runtime in any folder on PATH.

§

Missing

The runtime file is not at this path.

Fields

§path: PathBuf

The path looked at.

§

FailedToLoad

The runtime file is there but failed to load.

Fields

§path: PathBuf

The path of the runtime file.

§message: String

The operating system’s reason.

§

InvalidInstanceName

QAR_INSTANCE is set to something that is not an instance name (see is_valid_instance_name). No runtime is loaded.

Fields

§name: String

The value of QAR_INSTANCE, as set (read lossily when it is not Unicode).

§

UnknownInstance

QAR_INSTANCE names an instance without a runtime folder: for default, QAROS is not installed; for any other name, its per-user record holds neither a fully qualified RuntimeFolder nor a fully qualified InstallFolder. No other runtime is loaded.

Fields

§name: String

The instance QAR_INSTANCE names.

§

InstanceRuntimeNotLoadable

QAR_INSTANCE names an instance whose runtime folder holds no loadable runtime. No other runtime is loaded.

Fields

§name: String

The instance QAR_INSTANCE names.

§path: PathBuf

The runtime file looked at, in the instance’s runtime folder.

§message: Option<String>

The operating system’s reason when the file is there but failed to load; None when it is not there.

Trait Implementations§

Source§

impl Clone for LookupOutcome

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 Debug for LookupOutcome

Source§

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

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

impl Eq for LookupOutcome

Source§

impl PartialEq for LookupOutcome

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 LookupOutcome

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.