[][src]Struct qt_qml::q_qml_component::CompilationMode

#[repr(transparent)]pub struct CompilationMode(_);

Specifies whether the QQmlComponent should load the component immediately, or asynchonously.

C++ enum: QQmlComponent::CompilationMode.

C++ documentation:

Specifies whether the QQmlComponent should load the component immediately, or asynchonously.

Methods

impl CompilationMode[src]

pub fn to_int(&self) -> c_int[src]

impl CompilationMode[src]

pub const PreferSynchronous: CompilationMode[src]

Prefer loading/compiling the component immediately, blocking the thread. This is not always possible; for example, remote URLs will always load asynchronously. (C++ enum variant: PreferSynchronous = 0)

pub const Asynchronous: CompilationMode[src]

Load/compile the component in a background thread. (C++ enum variant: Asynchronous = 1)

Trait Implementations

impl Clone for CompilationMode[src]

impl Copy for CompilationMode[src]

impl Debug for CompilationMode[src]

impl Eq for CompilationMode[src]

impl From<CompilationMode> for c_int[src]

impl From<i32> for CompilationMode[src]

impl PartialEq<CompilationMode> for CompilationMode[src]

impl StructuralEq for CompilationMode[src]

impl StructuralPartialEq for CompilationMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.