Struct qt_core::q_read_write_lock::RecursionMode
source · pub struct RecursionMode(/* private fields */);
Expand description
This enum was introduced or modified in Qt 4.4.
C++ enum: QReadWriteLock::RecursionMode
.
This enum was introduced or modified in Qt 4.4.
See also QReadWriteLock().
Implementations§
source§impl RecursionMode
impl RecursionMode
sourcepub const NonRecursive: RecursionMode = _
pub const NonRecursive: RecursionMode = _
In this mode, a thread may only lock a QReadWriteLock once. (C++ enum variant: NonRecursive = 0
)
sourcepub const Recursive: RecursionMode = _
pub const Recursive: RecursionMode = _
In this mode, a thread can lock the same QReadWriteLock multiple times. The QReadWriteLock won’t be unlocked until a corresponding number of unlock() calls have been made. (C++ enum variant: Recursive = 1
)
Trait Implementations§
source§impl Clone for RecursionMode
impl Clone for RecursionMode
source§fn clone(&self) -> RecursionMode
fn clone(&self) -> RecursionMode
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 RecursionMode
impl Debug for RecursionMode
source§impl From<RecursionMode> for c_int
impl From<RecursionMode> for c_int
source§fn from(value: RecursionMode) -> Self
fn from(value: RecursionMode) -> Self
Converts to this type from the input type.
source§impl From<i32> for RecursionMode
impl From<i32> for RecursionMode
source§impl PartialEq for RecursionMode
impl PartialEq for RecursionMode
source§fn eq(&self, other: &RecursionMode) -> bool
fn eq(&self, other: &RecursionMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RecursionMode
impl Eq for RecursionMode
impl StructuralEq for RecursionMode
impl StructuralPartialEq for RecursionMode
Auto Trait Implementations§
impl RefUnwindSafe for RecursionMode
impl Send for RecursionMode
impl Sync for RecursionMode
impl Unpin for RecursionMode
impl UnwindSafe for RecursionMode
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