#[repr(u32)]pub enum ucs_thread_mode_t {
UCS_THREAD_MODE_SINGLE = 0,
UCS_THREAD_MODE_SERIALIZED = 1,
UCS_THREAD_MODE_MULTI = 2,
UCS_THREAD_MODE_LAST = 3,
}Expand description
@ingroup UCS_RESOURCE @brief Thread sharing mode
Specifies thread sharing mode of an object.
Variants§
UCS_THREAD_MODE_SINGLE = 0
< Only the master thread can access (i.e. the thread that initialized the context; multiple threads may exist and never access)
UCS_THREAD_MODE_SERIALIZED = 1
< Multiple threads can access, but only one at a time
UCS_THREAD_MODE_MULTI = 2
< Multiple threads can access concurrently
UCS_THREAD_MODE_LAST = 3
Trait Implementations§
Source§impl Clone for ucs_thread_mode_t
impl Clone for ucs_thread_mode_t
Source§fn clone(&self) -> ucs_thread_mode_t
fn clone(&self) -> ucs_thread_mode_t
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 ucs_thread_mode_t
impl Debug for ucs_thread_mode_t
Source§impl Hash for ucs_thread_mode_t
impl Hash for ucs_thread_mode_t
Source§impl PartialEq for ucs_thread_mode_t
impl PartialEq for ucs_thread_mode_t
impl Copy for ucs_thread_mode_t
impl Eq for ucs_thread_mode_t
impl StructuralPartialEq for ucs_thread_mode_t
Auto Trait Implementations§
impl Freeze for ucs_thread_mode_t
impl RefUnwindSafe for ucs_thread_mode_t
impl Send for ucs_thread_mode_t
impl Sync for ucs_thread_mode_t
impl Unpin for ucs_thread_mode_t
impl UnwindSafe for ucs_thread_mode_t
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