pub struct CompilationMode(/* private fields */);
Expand description
Specifies whether the QQmlComponent should load the component immediately, or asynchonously.
C++ enum: QQmlComponent::CompilationMode
.
Specifies whether the QQmlComponent should load the component immediately, or asynchonously.
Implementations§
Source§impl CompilationMode
impl CompilationMode
Sourcepub const PreferSynchronous: CompilationMode
pub const PreferSynchronous: CompilationMode
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
)
Sourcepub const Asynchronous: CompilationMode
pub const Asynchronous: CompilationMode
Load/compile the component in a background thread. (C++ enum variant: Asynchronous = 1
)
Trait Implementations§
Source§impl Clone for CompilationMode
impl Clone for CompilationMode
Source§fn clone(&self) -> CompilationMode
fn clone(&self) -> CompilationMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompilationMode
impl Debug for CompilationMode
Source§impl From<CompilationMode> for c_int
impl From<CompilationMode> for c_int
Source§fn from(value: CompilationMode) -> Self
fn from(value: CompilationMode) -> Self
Converts to this type from the input type.
Source§impl From<i32> for CompilationMode
impl From<i32> for CompilationMode
Source§impl PartialEq for CompilationMode
impl PartialEq for CompilationMode
impl Copy for CompilationMode
impl Eq for CompilationMode
impl StructuralPartialEq for CompilationMode
Auto Trait Implementations§
impl Freeze for CompilationMode
impl RefUnwindSafe for CompilationMode
impl Send for CompilationMode
impl Sync for CompilationMode
impl Unpin for CompilationMode
impl UnwindSafe for CompilationMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more